move raise_error_response into base_client, call from http_client so it's closer to the error origin #6