'Called by Request if an exception occurs within the handler. May and
should be overridden.'

def error(self, req):

    import cgitb
    req.stdout.write(('Content-Type:    text/html\r\n\r\n' + cgitb.html(sys.exc_info())))
