3 ms·
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
by eadmund 2y ago
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.
- aunderscored 2y agoEvery 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
- andreyvit 2y agoSorry, what? HTTP is perfectly fine for APIs which are not hypermedia.
- sunshowers 2y agoThis ship sailed the day the first HTTP proxy was installed, and likely well before that.