#NEWLINE# def write_error( self , status_code , **kwargs ) : #NEWLINE# #INDENT# 'Override for custom error page.' #NEWLINE# if ( ( status_code >= 500 ) and ( status_code < 600 ) ) : #NEWLINE# #INDENT# template = self . application . my_settings [ 'template_env' ] . get_template ( 'errors/5xx.html' ) #NEWLINE# self . write ( template . render ( { #NEWLINE# #INDENT# 'is_active' : self . is_active , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# template = self . application . my_settings [ 'template_env' ] . get_template ( 'errors/generic.html' ) #NEWLINE# self . write ( template . render ( { #NEWLINE# #INDENT# 'status_code' : status_code , #NEWLINE# 'message' : self . _reason , #NEWLINE# 'is_active' : self . is_active , #NEWLINE# 'trace_uuid' : self . perf_trace_uuid , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# #UNINDENT# self . finish ( )