def error(message, code=None):
    raise InvalidRequestException(message, code=code)
Trigger an Exception from a view that will short-circuit the Response
dataset/ETHPy150Open coleifer/scout/scout.py/error