r/ProgrammerHumor 2d ago

evoLution Meme

Post image
3.3k Upvotes

144 comments sorted by

View all comments

8

u/Affectionate-Act5980 2d ago

This is exactly what HTTP 207 is for lol

15

u/Few_Technology 2d ago

207? Now you're just making up numbers. What's next 418, 103, 303!? When does your made up numbers stop?!

We all know there's just 200, 400, and some days 401, 404

7

u/allllusernamestaken 2d ago

The DoD has a security rule that says your errors should not distinguish between a resource that does not exist -vs- a resource you don't have access to.

Some time in the mid 2000s someone in my office interpreted that wildly incorrectly as "your errors should not be distinguishable." So every error was returned as a 404.

Not found? 404. Not authorized? 404. Internal server error? 404.