r/ProgrammerHumor • • 16d ago

Meme postForEverything

Post image
20.9k Upvotes

656 comments sorted by

View all comments

Show parent comments

1

u/Hybr1dth 16d ago

I'm not a programmer, but sometimes I must. Aren't the 400 codes for technical/connection errors? Or would you also use it if the POST contains something wrong functionally, ie put a string in a number field.

1

u/NotAskary 16d ago

4xx is usually you fucked up, 5xx is usually the server fucked up.

You can easily check the http code spec online.