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

Troubleshooting Error Responses from Your Origin

If CloudFront requests an object from your Amazon S3 bucket or custom origin server and your origin returns an HTTP 4xx or 5xx status code, there's a problem with communication between CloudFront and your origin. The following sections describe common causes for selected HTTP status codes and provides some possible solutions.