hoxy
hoxy copied to clipboard
No way to get the status message
I am using hoxy as a reverse proxy. I find no way to get the status message from the response. Example "INTERNAL SERVER ERROR".
HTTP/1.1 500 INTERNAL SERVER ERROR
You can get a status message using node's built in http.STATUS_CODES
. https://nodejs.org/dist/latest-v4.x/docs/api/http.html#http_http_status_codes
I need the exact status message returned by the server not some kind of translation of the status code to a text message. For example the following returns the message in all uppercase NOT FOUND
.
http://httpbin.org/status/404
If that is not possible then I will do what you have suggested.
I'd like to reopen this. There is an upstream proxy that indicates some meaningful things by appending its name to the status message if it performs an action on the response.
I'd accept a PR for this.
Relevant API: https://nodejs.org/api/http.html#http_message_statusmessage