4 ms·
Why is this person making up their own rules rather than following the standard? https://developer.mozilla.org/en-US/docs/Web/HTTP/Status https://developer.mozi
by grumple 4y ago
Why is this person making up their own rules rather than following the standard? https://developer.mozilla.org/en-US/docs/Web/HTTP/Status https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
You should return the best-fitting error code and an error response in an expected format for the end user you are serving (either your own frontend, or your own api users).
Using 200 for everything means you can't use a whole lot of enterprise server / error tracking software to monitor failures related to the business logic, which are generally as important as most technical failures.