Fixing bug with raise_if_response_error.