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.
I managed to display a custom error page for 404
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.