HTTP 500 Status Code (Lambda Execution Error) - Amazon CloudFront

HTTP 500 Status Code (Lambda Execution Error)

If you’re using Lambda@Edge, an HTTP 500 status code can indicate that your Lambda function returned an execution error. For more information about troubleshooting Lambda@Edge errors, see Testing and Debugging Lambda@Edge Functions.