Customizing error responses in CloudFront

The objects that you're serving through CloudFront can be unavailable for a variety of reasons. These reasons fall into two broad categories:

  • Client errors (status code range 4xx): These errors are the result of HTTP requests sent by the client. For example, the object name isn't available, or the user doesn't have the permissions required to read the object. 
  • Server errors (status code range 5xx): These errors indicate a problem with the origin server as is not able to process the request. For example, the HTTP server is busy or unavailable.

Get AWS Networking Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.