this post was submitted on 14 Sep 2025
745 points (99.3% liked)

Programmer Humor

26332 readers
2139 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
[โ€“] The_Decryptor@aussie.zone 3 points 8 hours ago (1 children)

Ehh, that really feel like "But other people do it wrong too" to me, half the 4xx error codes are application layer errors for example (404 ain't a transport layer error, neither is 403, 415, 422 or 451)

It also complicates actually processing the request as you've got to duplicate error handling between "request failed" and "request succeeded but actually failed". My local cinema actually hits that error where their web frontend expects the backend to return errors, but the backend lies and says everything was successful, and then certain things break in the UI.

frontend expects the backend to return errors, but the backend lies and says everything was successful, and then certain things break in the UI

That's a double failure then: not only does the backend do it wrong, the frontend devs don't even know it. If they'd agreed on one way of handling it, they'd still be able to work it out. But if the devs don't even communicate their standards with each other and the frontend devs obviously don't know about the problem...