News for hackers. Stuff that matters.
Re:We have broken HTTP by bluetomcat on Monday January 12, 2015 @07:16AM (#8873472)
> I have seen that developers have this weird need to create your own method and means of communicating errors.

Developers ignore most of the status codes because they introduce unnecessary complexity on both ends (client and server) and do not always map well with the application logic. With JSON payloads, HTTP is used as a "light vehicle" to carry the application logic. Since the payload is going to be specially interpreted anyway, I don't see a benefit in cramming legacy HTTP cruft in the headers and in status codes.

The really annoying thing is the web server spitting out HTML on error conditions instead of the expected JSON.

There are no comments on this comment yet.