def mock_purge_bad_creds(url, request):
    """
    Mocks a response of a purge issued with invalid credentials. In this
    situation we will get a text/html response regardless of if we send
    a content-type header of json, so the content type in this response
    of html is not a typo
    """
    return {'status_code': 401,
            'content-type': 'text/html;charset=utf-8',
            'server': 'Apache',
            'www-authenticate': 'Basic realm="Luna Control Center"',
            'content': '<html><head><title>401 Unauthorized</title></head>'
                       '<body><p>401 Unauthorized</p><p>You are not authorized'
                       ' to access that resource</p></body></html>'
            }