A more correct approach to HTTP error handling.