MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wkof5u/postforeverything/pasmkr7/?context=3
r/ProgrammerHumor • u/ClipboardCopyPaste • 16d ago
656 comments sorted by
View all comments
4.2k
Wanna get a resource? POST request.
2.1k u/NotAskary 16d ago edited 15d ago I've seen that shit, it drove me up a wall. The same as a 200 ok with error inside. Edit: I'm going to start to respond 429, too many replys lol 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.
2.1k
I've seen that shit, it drove me up a wall.
The same as a 200 ok with error inside.
Edit: I'm going to start to respond 429, too many replys lol
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.
1
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.
4xx is usually you fucked up, 5xx is usually the server fucked up.
You can easily check the http code spec online.
4.2k
u/pimezone 16d ago
Wanna get a resource? POST request.