def _raise_client_error(url, message, **kwargs):
content = dict(message=message)<EOL>content.update(kwargs)<EOL>raise HttpClientError(<EOL>"<STR_LIT>".format(settings.ENTERPRISE_ENROLLMENT_API_URL, url),<EOL>content=json.dumps(content).encode(),<EOL>)<EOL>
Emulate a client error raised by edx_rest_api_client.