How to do it...

  1. Log in to the AWS Console, select CloudFront, select your distribution, and go to the Error Pages tab.
  2. Click on Create Custom Error Response.
CloudFront: Create Custom Error
  1. Set up the error pages and click on Create.
CloudFront: Create Custom Error

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.