this post was submitted on 14 Sep 2025
727 points (99.5% liked)

Programmer Humor

26332 readers
2313 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] NigelFrobisher@aussie.zone 26 points 1 day ago* (last edited 1 day ago) (1 children)

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 33 points 1 day ago (1 children)

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 42 points 1 day ago* (last edited 1 day ago) (3 children)

Yep

  • 2xx - it's good
  • 3xx - not here cunt
  • 4xx - you don fucked up
  • 5xx - we fucked up, whatever you do aint changing shit.
[–] Ziglin@lemmy.world 5 points 4 hours ago

The number of times I've gotten 5xx codes for bad requests is annoyingly high.

[–] mercano@lemmy.world 15 points 21 hours ago* (last edited 21 hours ago)

1xx - We’re still working on it

[–] Hawk@lemmy.dbzer0.com 7 points 20 hours ago (1 children)

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