def error_page_401(status, message, traceback, version):
 title = T('Access denied')
 body = (T('Error %s: You need to provide a valid username and password.') % status)
 return ('\n<html>\n    <head>\n    <title>%s</title>\n    </head>\n    <body>\n    <br/><br/>\n    <font color="#0000FF">%s</font>\n    </body>\n</html>\n' % (title, body))

def error_page_401 ( status , message , traceback , version ) : title = T ( 'Access denied' ) body = ( T ( 'Error %s: You need to provide a valid username and password.' ) % status ) return ( '\n<html>\n    <head>\n    <title>%s</title>\n    </head>\n    <body>\n    <br/><br/>\n    <font color="#0000FF">%s</font>\n    </body>\n</html>\n' % ( title , body ) )
custom handler for 401 error .