this post was submitted on 10 Apr 2026
157 points (91.1% liked)

Programmer Humor

31403 readers
1328 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
[–] LeapSecond@lemmy.zip 7 points 1 month ago (1 children)

Network tab: server returned an html page with the words "Something went wrong."

[–] Jakylla@jlai.lu 4 points 1 month ago (1 children)
[–] 123@programming.dev 3 points 1 month ago (1 children)

Had manager that wanted us to return error codes on a field of an API response along with an HTTP 200 because "errors bad". It needed a few of us to make him understand how that worked against common design patterns and you still had to handle error codes since you didn't know if the error would be coming from the app, web server, api gateway, local network (no internet), etc.

[–] a_random_fox@discuss.tchncs.de 1 points 1 month ago

The UPS tracking API has a similar issue, when it doesn't find a tracking number it returns 200 and an API response with the not found error inside. The documentation even states that the API does return 404 in that case. A github issue about that mismatch is open for over a year already: https://github.com/UPS-API/api-documentation/issues/166