added has_http_error helper to http_response