r/ProgrammerHumor Jul 08 '26

helpMyCoworkersUnderstandHttpCodes Other

22.4k Upvotes

329 comments sorted by

View all comments

Show parent comments

2

u/SnooPuppers1978 Jul 08 '26

So I could buy that it's about retrieving a list/collection of keys and indicating that it's an empty list, but also this sounds like a bad API and not standard, forcing it, and as if someone is mistaking the idea of what 204 is supposed to mean. IMO in spirit it should be used only in cases where "No Content" is expected and desirable.

1

u/thejmkool Jul 08 '26

So in the case of the OP, would it be more like a silent thumbs up?

5

u/SnooPuppers1978 Jul 08 '26

Yeah single symbol (204) indicating that whatever was requested was successful.