[http-client] Remove newlines from response headers (thanks @staabm)
[http-client] Gracefully handle undefined response status codes