Amazon CloudFront
Developer Guide (API Version 2016-09-29)

HTTP 503 Status Code (Lambda Validation Error)

If you're using Lambda@Edge, an HTTP 503 status code can indicate that your Lambda function response was incorrectly formed or included invalid content. For more information about troubleshooting Lambda errors in CloudFront, see Testing and Debugging Lambda@Edge Functions.