def raise_402(instance, msg=None):
    instance.response.status = 402
    if msg:
        instance.response.body_raw = {'error': msg}
    raise ResponseException(instance.response)
Abort the current request with a 402 (Payment Required) response code.
dataset/ETHPy150Open pneff/wsgiservice/wsgiservice/status.py/raise_402