Simplifications to HTTP error handling.