News for hackers. Stuff that matters.
Re:Some items from my “reliability list” by p1necone on Thursday July 25, 2019 @04:12PM (#20529096)
I typed up a big spiel about the difference between "expected in business logic failures" and "infrastructure failures", but then I looked at the wikipedia page for HTTP error codes and it does look like some HTTP 400 level errors are intended for cases like clients sending data that fails business logic level validation and the like.
Re:Some items from my “reliability list” by sagichmal on Thursday July 25, 2019 @04:16PM (#20529140)
That's right.

And let me say it's totally valid to just ignore that advice, and say that here, in this company, we use 200 OK for everything that isn't a parse failure. And that's not totally wrong! It won't break anything. You're not really leveraging any of the power of your transport but maybe that's fine for your situation.