def raise_405(instance):
    instance.response.status = 405
    instance.response.headers['Allow'] = instance.get_allowed_methods()
    raise ResponseException(instance.response)
Abort the current request with a 405 (Method Not Allowed) response
dataset/ETHPy150Open pneff/wsgiservice/wsgiservice/status.py/raise_405