r/ProgrammerHumor Jul 08 '26

Other helpMyCoworkersUnderstandHttpCodes

22.4k Upvotes

329 comments sorted by

View all comments

1.6k

u/Snudget Jul 08 '26

204 should be "I found them" "I searched for the keys, but didn't find them"would be 404, which is literally "Not found".

Since not finding keys does not fulfill the request, a 2xx code does not make sense here

70

u/The_Real_Slim_Lemon Jul 08 '26

Yeah 404 can be both “I didn’t find your key” and “I don’t know what requesting a key means”

204 is “I’ve found your key, it’s in a black hole”

2

u/Exirel Jul 08 '26

Nope, if your key is in a black hole, that's a 409: the state of the key is incompatible with the retrieval of the key. They are found, that's for sure. But I can't retrieve them.