I feel stupid for having to ask this but I cannot get amazon's s3 error document to work. What I want to do is show a custom error document when a user tries to access a file that doesn't not exist. So I followed to documentation at https://docs.aws.amazon.com/AmazonS3/latest/userguide/CustomErrorDocSupport.html but this simply doesn't work.
I can access files that exist but when I enter https://mybucketurl/notexistingdoc.html it trows the usual access denied/key not found xml error.
As the documentation is pretty barebones and it there isn't much to configure I have no clue what is wrong. I even tried setting to permissions on my bucket to s3:* to make sure it wasn't a permission issue.