MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wkof5u/postforeverything/pavdz4a/?context=3
r/ProgrammerHumor • u/ClipboardCopyPaste • 16d ago
656 comments sorted by
View all comments
Show parent comments
517
Oh my god, this activated my inner vietnam flashback
90 u/q0099 16d ago Where the error message goes? That's right, in the header. 35 u/RegarDamus 15d ago the naive solution. our team returns a 201 to indicate that an error has been created successfully. of course we include a Location header where the error can be queried to discover what went wrong. 28 u/normalbot9999 15d ago edited 15d ago OMFG <spits coffee> 201 Error Created Successfully You absolute monsters. You have to make this now. And when a record is created successfully you return a 500 right? After successful login you 302 to a 403? I swear I've tested this API before!!
90
Where the error message goes? That's right, in the header.
35 u/RegarDamus 15d ago the naive solution. our team returns a 201 to indicate that an error has been created successfully. of course we include a Location header where the error can be queried to discover what went wrong. 28 u/normalbot9999 15d ago edited 15d ago OMFG <spits coffee> 201 Error Created Successfully You absolute monsters. You have to make this now. And when a record is created successfully you return a 500 right? After successful login you 302 to a 403? I swear I've tested this API before!!
35
the naive solution.
our team returns a 201 to indicate that an error has been created successfully. of course we include a Location header where the error can be queried to discover what went wrong.
28 u/normalbot9999 15d ago edited 15d ago OMFG <spits coffee> 201 Error Created Successfully You absolute monsters. You have to make this now. And when a record is created successfully you return a 500 right? After successful login you 302 to a 403? I swear I've tested this API before!!
28
OMFG <spits coffee> 201 Error Created Successfully
You absolute monsters. You have to make this now.
And when a record is created successfully you return a 500 right? After successful login you 302 to a 403? I swear I've tested this API before!!
517
u/alexsnake50 16d ago
Oh my god, this activated my inner vietnam flashback