Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: