human
Complete this python program:
def _AddMockJSONResponseError(mock_client, url):
assistant
#Here is the Python program you requested.

    """Add a mapping entry to the mock client such that requests to
    "url" will return an HTTP response containing the JSON-formatted
    "response_dict".
    """
    def _CreateResponse(request):
        print request
        return httpclient.HTTPResponse(request, 401, headers={'Content-Type': 'application/json'}, buffer=None)
    mock_client.map(url, _CreateResponse)