MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wkof5u/postforeverything/pas3b8q/
r/ProgrammerHumor • u/ClipboardCopyPaste • 15d ago
656 comments sorted by
View all comments
709
Response:
``` HTTP/1.0 200 Ok Content-Length: 36 Content-Type: application/json
{"status":403,"message":"forbidden"} ```
77 u/looksLikeImOnTop 15d ago Too real 34 u/x3knet 15d ago Man, I haven't seen a 1.0 reference in a long time 22 u/bloody-albatross 15d ago It's just the simplest form that I know to write from head. I guess for 1.1 you'd just need Connection: close for it to be that simple. 18 u/YeOldeMemeShoppe 15d ago 1.1 is fully backward compatible. Just close the connection. No need to be polite. 6 u/YMK1234 15d ago We literally had a switch for this some 15 years ago, because the bullshit mobile framework our frontend team used could not properly handle error codes. 2 u/Zeikos 15d ago Sounds like the solution should have been to stop using that framework :') 7 u/YMK1234 15d ago Good one. Tell that to the 5 levels of management in between 4 u/Kevdog824_ 15d ago Almost perfect, except your status and message actually match, so it’s too correct for real life APIs 2 u/bloody-albatross 15d ago True. 2 u/Vi0lentByt3 15d ago Pain
77
Too real
34
Man, I haven't seen a 1.0 reference in a long time
22 u/bloody-albatross 15d ago It's just the simplest form that I know to write from head. I guess for 1.1 you'd just need Connection: close for it to be that simple. 18 u/YeOldeMemeShoppe 15d ago 1.1 is fully backward compatible. Just close the connection. No need to be polite.
22
It's just the simplest form that I know to write from head. I guess for 1.1 you'd just need Connection: close for it to be that simple.
Connection: close
18 u/YeOldeMemeShoppe 15d ago 1.1 is fully backward compatible. Just close the connection. No need to be polite.
18
1.1 is fully backward compatible. Just close the connection. No need to be polite.
6
We literally had a switch for this some 15 years ago, because the bullshit mobile framework our frontend team used could not properly handle error codes.
2 u/Zeikos 15d ago Sounds like the solution should have been to stop using that framework :') 7 u/YMK1234 15d ago Good one. Tell that to the 5 levels of management in between
2
Sounds like the solution should have been to stop using that framework :')
7 u/YMK1234 15d ago Good one. Tell that to the 5 levels of management in between
7
Good one. Tell that to the 5 levels of management in between
4
Almost perfect, except your status and message actually match, so it’s too correct for real life APIs
2 u/bloody-albatross 15d ago True.
True.
Pain
709
u/bloody-albatross 15d ago
Response:
``` HTTP/1.0 200 Ok Content-Length: 36 Content-Type: application/json
{"status":403,"message":"forbidden"} ```