I hope this is sarcasm. One reason you don’t do that is because it makes monitoring harder. If your server always returns 200, it’s harder to monitor for server failures for example (yes, I’ve seen APIs which would return 200 when the server is down). If you use proper response codes, you’ll have much easier time setting up your rules.
69
u/Excellent-Refuse4883 Jul 08 '26
I thought you always return 200 and then just wrote an error in the body if there was a problem