def raise_400(instance, msg=None):
    instance.response.status = 400
    if msg:
        instance.response.body_raw = {'error': msg}
    raise ResponseException(instance.response)
Abort the current request with a 400 (Bad Request) response code. If
dataset/ETHPy150Open pneff/wsgiservice/wsgiservice/status.py/raise_400