def raise_401(instance, authenticate, msg=None):
    instance.response.status = 401
    instance.response.headers['WWW-Authenticate'] = authenticate
    if msg:
        instance.response.body_raw = {'error': msg}
    raise ResponseException(instance.response)
Abort the current request with a 401 (Unauthorized) response code. If
dataset/ETHPy150Open pneff/wsgiservice/wsgiservice/status.py/raise_401