Improve error handling for raw http requests.
0.0.38