News for hackers. Stuff that matters.
Re:REST Anti-Patterns (2008) by VonGallifrey on Wednesday May 10, 2017 @05:10PM (#14311753)
> 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.

Re:REST Anti-Patterns (2008) by jack9 on Monday May 15, 2017 @12:29AM (#14339161)
> 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

Re:REST Anti-Patterns (2008) by haburka on Thursday May 11, 2017 @09:18AM (#14315749)
The 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.
Re:REST Anti-Patterns (2008) by icebraining on Thursday May 11, 2017 @08:30PM (#14320604)
It'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.