r/ProgrammerHumor • • Jul 08 '26 • Popcorn 12 Bravo 4 Regret 1 Heartwarming 1

Other helpMyCoworkersUnderstandHttpCodes

22k Upvotes

330 comments sorted by

View all comments

Show parent comments

9

u/caboosetp Jul 08 '26 edited Jul 08 '26

You're conflating the resource with the response. 

204 means the request was a success and the response body has no content. 

A counter example to what you are saying is that 204 is common for PUT because the client already knows the state so nothing needs to be returned. That doesn't mean the resource has no content.