this post was submitted on 22 Mar 2025
753 points (98.8% liked)

Programmer Humor

22262 readers
1443 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
[–] [email protected] 75 points 2 weeks ago (15 children)

I know an architect who designs APIs this way. Also includes a status code in the response object because why have one status code when you can have two, potentially contradictory, status codes?

[–] [email protected] 50 points 2 weeks ago (3 children)

I inherited a project where it was essentially impossible to get anything other than 200 OK. Trying to use a private endpoint without logging in? 200 OK unauthorized. Sent gibberish instead of actual request body format? 200 OK bad request. Database connection down? You get the point...

[–] [email protected] 30 points 2 weeks ago

It's the HTTP version of "great job."

load more comments (2 replies)
load more comments (13 replies)