3 ms·
I think that you have a point as far as staying true to what the status codes mean, but it comes with a price. To make the resource invisible to the user by 40
by mjpuser 11y ago
I think that you have a point as far as staying true to what the status codes mean, but it comes with a price. To make the resource invisible to the user by 404ing instead of 403ing, you protect yourself from people searching for endpoints that return personal info... and all urls are guessable. If you get a hit on some resource in a sea of 404s, you are that much closer to gaining private info.
- 3pt14159 11y agoBut if there is a chance that a resource exists at all, then that whole range of URLs should return 403, regardless of whether or not they exist.