3 ms·
> Web server error codes are for web server failures and application level errors are communicated via a 200, properly. I guess google, facebook, microsoft and
by VonGallifrey 9y ago
> Web server error codes are for web server failures and application level errors are communicated via a 200, properly.
I guess google, facebook, microsoft and all the others are doing it wrong then? Or Improperly according to you? Because they do not respond with a 200 on application level errors in their APIs.
- haburka 9y agoThe needs and use case for Google, Microsoft, and Facebook are radically different than anyone else. No developer should imitate them blindly because, chances are, the conditions you are working in do not match the big four. There is no ideal way of coding, instead, you match your style to what is needed. I wish more people understood that.
- icebraining 9y agoIt's an error code, not a massively distributed system. There's no reason why the solution for the "big four" should be different than for anyone else. Especially since their APIs are designed to be used by everyone else.
- jack9 9y ago> I guess They made a choice to treat multiple applications as one. That's not what I would prefer and is less useful in my opinion. There are some CDNs and payment processors that are in operation, that use the 200 error response, so I tried it. I think it's clearly superior. YMMV