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

When you query for an inexistent postal code (i.e. http://zip.elevenbasetwo.com/?zip=101)

the page returns "404" as content but the response header is "200 OK".

That is inconvenient, and RESTfully wrong.

UPDATE: added pull request https://github.com/gbaygon/ziptastic/commit/7284cb2e4f863161...



It has nothing to do with REST.

REST != HTTP


The point is that regardless of naming, it's not standard HTTP, nor convenient for the developer consuming the api to return soft 404's.




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

Search: