def error(status, message):
 headers = {'Content-Type': 'text/plain'}
 current.log.error(message)
 raise HTTP(status, body=message, web2py_error=message, **headers)

def error ( status , message ) : headers = { 'Content-Type' : 'text/plain' } current . log . error ( message ) raise HTTP ( status , body = message , web2py_error = message , ** headers )
decorator to mark a validator method for a bokeh error condition args: code_or_name : a code from bokeh .