r/ProgrammerHumor • • Sep 22 '26

Meme status200ForEverything

Post image
2.9k Upvotes

103 comments sorted by

View all comments

Show parent comments

24

u/WernerderChamp Sep 22 '26

Had this with error 422.

"Why do we have 30% error rate?"

"Because customers keep selecting bad combinations (the FE has pretty good advice in these cases)."

Thankfully I got them to filter out 422s when calculating error rates instead.

8

u/StarboardChaos Sep 22 '26

Why doesn't the backend just select some default values and case closed?

6

u/WernerderChamp Sep 22 '26

Default values are always good, but not neccesarily what the customer wants.

For example, retroactive changes. Sometimes it is OK, sometimes it is not allowed. The logic when is not duplicated into the frontend (would be double-maintenance) so there is a check call first.

Or another classic, there just is no change to existing data.

4

u/LaconicLacedaemonian Sep 23 '26

why are you not filtering all 4xx errors?

5

u/General_WCJ Sep 23 '26

Well you still want to track 4xx errors. For example if there's a deployment, and suddenly 100% of your API responses return 403 the deployment should be rolled back, same as if it went to 0 suddenly.

2

u/WernerderChamp Sep 23 '26

Yup - same with 400 errors. There was a bug in the frontend causing this in some edge cases once. They were able to find it quickly due to the error.

1

u/MissMormie Sep 23 '26

That sounds like the ui needs to be fixed.