def raise_501(instance):
    instance.response.status = 501
    instance.response.headers['Allow'] = instance.get_allowed_methods()
    raise ResponseException(instance.response)
Abort the current request with a 501 (Not Implemented) response code.
dataset/ETHPy150Open pneff/wsgiservice/wsgiservice/status.py/raise_501