229
REST my ass đź’© (eviltoast.org)
you are viewing a single comment's thread
view the rest of the comments
[-] NigelFrobisher@aussie.zone 11 points 3 weeks ago* (last edited 3 weeks ago)

Yep, I’ve got one of these at work now. Technically, 200 can make sense here if you’re using HTTP as RPC transport, as the server relayed the request to its handler and returned the outcome, but damn if it’s not annoying to actually process the response.

I’ve also seen a lot of devs tie themselves into knots trying to map various execution types to the “semantically correct” HTTP code, but the thing is the abstraction of HTTP is not based around RPC and it’s ultimately a pretty weird fit that we’ve somehow come to view as normal.

[-] TomasEkeli@programming.dev 19 points 3 weeks ago

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.

[-] MyNameIsIgglePiggle@sh.itjust.works 24 points 3 weeks ago* (last edited 3 weeks ago)

Yep

  • 2xx - it's good
  • 3xx - not here cunt
  • 4xx - you don fucked up
  • 5xx - we fucked up, whatever you do aint changing shit.
[-] mercano@lemmy.world 12 points 3 weeks ago* (last edited 3 weeks ago)

1xx - We’re still working on it

[-] Hawk@lemmy.dbzer0.com 8 points 3 weeks ago
[-] TomasEkeli@programming.dev 2 points 3 weeks ago

good old 418, always appears when you really want a cup of coffee

[-] Ziglin@lemmy.world 6 points 3 weeks ago

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.

[-] I_am_10_squirrels@beehaw.org 2 points 2 weeks ago

Respond to everything as a teapot

this post was submitted on 14 Sep 2025
229 points (98.3% liked)

Programmer Humor

26722 readers
334 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS