Your Function invocation resulted in StatusCode 5xx.
- Your Function timed out before responding.
- Your Function returned an error response.
- Your Function must contain a callback.
- Make sure you place the Function callback
callback(err, response)is placed correctly in your Function code.
- Your Function responded with an error.