Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on API Shouldn't Redirect HTTP to HTTPS. Parent comment
Returning an error (and/or blocking the port entirely) allows the developer to understand he is using the wrong protocol and fix it.
In this scenario, the end user never actually performs an http request, because the protocol was fixed by the service developer.
There are no comments on this comment yet.
Returning an error (and/or blocking the port entirely) allows the developer to understand he is using the wrong protocol and fix it.
In this scenario, the end user never actually performs an http request, because the protocol was fixed by the service developer.