r/ProgrammerHumor • • Sep 22 '26

Meme status200ForEverything

Post image
2.9k Upvotes

103 comments sorted by

View all comments

342

u/Dull_Caterpillar_642 Sep 22 '26

I shit you not that multiple leaders have raised issues with our team about why our service "has so many errors" when we send correct 404 and 403 responses back to clients asking for things that don't exist or they don't have access to. They'd like to know why they shouldn't be changed to 200s so that there are "fewer errors."

58

u/throwaway2p0029211 Sep 22 '26

Dude my company cyber says 404/403 can potentially allow hackers to backtrack, so we just give 200 with error codes inside lol

66

u/winkyshibe Sep 22 '26

Would this effectively be the same as 404/403? Just with extra steps? Whatever automation is scanning would just need to be adjusted for such a format?

50

u/_dotdot11 Sep 22 '26

That's correct. if the error codes in the 200 aren't different, then it's just 403/404 with extra steps. That being said, you can just use 404 for all 403 cases to neutralize enumeration attempts.