What happens when you send an HTTP request to CloudFront with a nonexistent method (HTTP Verb)?
What happens when you send an HTTP request to CloudFront (hereafter CF) with a nonexistent method (HTTP Verb)?
Generally, when a request comes into CF
- A TCP connection is established
- It passes through TLS
- It reaches the CloudFront distribution
But if the method doesn’t exist, it doesn’t get as far as step 3. Since it never reaches step 3, the error page redirection rule doesn’t kick in. Instead, CF responds with the 400 error HTML that is set by default in CF (which cannot be customized by the user).
20211015
Leave a comment