#NEWLINE# def on_get( self , req , resp ) : #NEWLINE# #INDENT# def always_fail( value ) : #NEWLINE# #INDENT# raise ValidationError ( 'something went wrong' ) #NEWLINE# #UNINDENT# args = { #NEWLINE# #INDENT# 'text' : fields . Str ( validate = always_fail ) , #NEWLINE# #UNINDENT# } #NEWLINE# resp . body = json . dumps ( parser . parse ( args , self ) )