Skip to content

Comment on Beyond Ctrl-C: The dark corners of Unix signal handlingparent

Comments

If you’re using HTTP for something other than transferring hypertext — i.e., if your application is not a hypermedia application — then you are doing something just as wrong as encoding IP in DNS packets or email messages. Don’t do that. It’s wrong, even if it is technically interesting.

If, OTOH, your application is a hypermedia application, then returning a success status for errors is just wrong.

Every JSON API under the sun disagrees, but I do agree in principle. People very much like using HTTP as a JSON (or XML) transfer protocol

This ship sailed the day the first HTTP proxy was installed, and likely well before that.

Sorry, what? HTTP is perfectly fine for APIs which are not hypermedia.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.