Use nodes build in status codes for errors rather than your own list

By using http.STATUS_CODES[statusCode] we get more status codes.

If the parsing fails the error is now returned to the callback.

Please not that I could not get the tests to run due to lacking config.