My problem was that the objects I requested did not exist. I'm not sure if there is any special configuration that we made to make it 403, not 404, but to this day, if I try to request an object from our bucket, which I am sure does not exist, I get 403 .
The reason for the 403 is probably one of security; if someone catches objects, and sometimes they get 403 because they donβt have access to the object that exists, and sometimes they get 404 because the object does not legally exist, they can potentially get some confidential information.
source share