Book Image

AWS Networking Cookbook

By : Satyajit Das, Jhalak Modi
Book Image

AWS Networking Cookbook

By: Satyajit Das, Jhalak Modi

Overview of this book

This book starts with practical recipes on the fundamentals of cloud networking and gradually moves on to configuring networks and implementing infrastructure automation. This book then supplies in-depth recipes on networking components like Network Interface, Internet Gateways, DNS, Elastic IP addresses, and VPN CloudHub. Later, this book also delves into designing, implementing, and optimizing static and dynamic routing architectures, multi-region solutions, and highly available connectivity for your enterprise. Finally, this book will teach you to troubleshoot your VPC's network, increasing your VPC's efficiency. By the end of this book, you will have advanced knowledge of AWS networking concepts and technologies and will have mastered implementing infrastructure automation and optimizing your VPC.
Table of Contents (10 chapters)

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.

Getting ready

The HTTP status codes for which CloudFront can return a custom error page includes the following:

  • 400, 403, 404...