amazon-web-servicesamazon-cloudfrontcustom-error-pages

Cloudfront 405 error not displaying custom error page


I created custom error page on Cloudfront with HTTP error code 404 and 405. I pointed the response page path to private/index.html hosted in s3 bucket.

custom error pages

I managed to display a custom error page for 404

405 Error

but when I try hitting the Cloudfront domain using TRACE method in Postman I'm getting 405 but the custom response page path is not showing. It's still showing the default 405 error by Cloudfront.


Solution

  • CloudFront does not support TRACE method. Please see this and this in AWS documentation.