def abort(code):

    return code, {'errors': [{
        'message': str(code) + ' ' + status_codes.get(code, 'Unknown')
    }]}
A standardized way to abort
dataset/ETHPy150Open heiskr/sagefy/server/framework/routes.py/abort