Troubleshooting error responses from your origin
If CloudFront requests an object from your origin, and the origin returns an HTTP 4xx or 5xx status code, there's a problem with communication between CloudFront and your origin. The following topics describe common causes for some of these HTTP status codes, and some possible solutions.
Topics
- HTTP 400 status code (Bad Request)
- HTTP 502 status code (Bad Gateway)
- HTTP 502 status code (Lambda validation error)
- HTTP 502 status code (DNS error)
- HTTP 503 status code (function execution error)
- HTTP 503 status code (Lambda limit exceeded)
- HTTP 503 status code (Service Unavailable)
- HTTP 504 status code (Gateway Timeout)