orhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 3 days agoREST my ass 💩eviltoast.orgimagemessage-square106fedilinkarrow-up1814arrow-down15
arrow-up1809arrow-down1imageREST my ass 💩eviltoast.orgorhtej2@eviltoast.org to Programmer Humor@programming.devEnglish · 3 days agomessage-square106fedilink
minus-squareTomasEkeli@programming.devlinkfedilinkarrow-up35·3 days agoThen just return a 500 - Server error. Nice and obscure. The ability to separate “something wrong with what you sent” (4XX) and “something wrong on the server” (5XX) is very valuable in itself.
minus-squareMyNameIsIgglePiggle@sh.itjust.workslinkfedilinkarrow-up43·edit-23 days agoYep 2xx - it’s good 3xx - not here cunt 4xx - you don fucked up 5xx - we fucked up, whatever you do aint changing shit.
minus-squareZiglin (it/they)@lemmy.worldlinkfedilinkEnglisharrow-up6·2 days agoThe number of times I’ve gotten 5xx codes for bad requests is annoyingly high.
minus-squareMyNameIsIgglePiggle@sh.itjust.workslinkfedilinkarrow-up2·1 day agoFair. But they still fucked up so at least that’s on them I guess it’s like a retail worker apologising excessively because of trauma.
minus-squaremercano@lemmy.worldlinkfedilinkarrow-up15·edit-23 days ago1xx - We’re still working on it
minus-squareHawk@lemmy.dbzer0.comlinkfedilinkEnglisharrow-up10arrow-down1·3 days agoAnd then there’s 418
minus-squareTomasEkeli@programming.devlinkfedilinkarrow-up2·2 days agogood old 418, always appears when you really want a cup of coffee
minus-squareI_am_10_squirrels@beehaw.orglinkfedilinkarrow-up2·2 days agoRespond to everything as a teapot
Then just return a 500 - Server error. Nice and obscure.
The ability to separate “something wrong with what you sent” (4XX) and “something wrong on the server” (5XX) is very valuable in itself.
Yep
The number of times I’ve gotten 5xx codes for bad requests is annoyingly high.
Fair. But they still fucked up so at least that’s on them
I guess it’s like a retail worker apologising excessively because of trauma.
1xx - We’re still working on it
And then there’s 418
good old 418, always appears when you really want a cup of coffee
Respond to everything as a teapot