return http_code with the response object