Implement http error responses.