#NEWLINE# def error( message , code = None ) : #NEWLINE# #INDENT# '\n    Trigger an Exception from a view that will short-circuit the Response\n    cycle and return a 400 "Bad request" with the given error message.\n    ' #NEWLINE# raise InvalidRequestException ( code , code = code )