def error500(error): # Record the error in the log logerr() # Return a standard error page return stderr("Internal Error", "An internal server error occured", 500)
def error500(error): # Record the error in the log logerr() # Return a standard error page return stderr("Internal Error","An internal server error occured",500)
def errorDaemonConnetionError(error): return stderr("Could not connect to desktop manager service", str(error), 500)
def errorFatal(error): return stderr("Application error", str(error), 500)
def error405(error): return stderr("Not allowed", "Your web browser sent the wrong HTTP method", 405)
def error404(error): return stderr("Not found", "I could not find what you requested", 404)
def error403(error): return stderr( "Permission Denied", "You do not have permission to access that page or perform that action.", 403, template="no.html")
def error400(error): return stderr("Bad Request", "Your request was invalid", 400)
def errorDaemonConnetionError(error): return stderr("Could not connect to desktop manager service",str(error),500)
def errorFatal(error): return stderr("Application error",str(error),500)
def error405(error): return stderr("Not allowed","Your web browser sent the wrong HTTP method",405)
def error404(error): return stderr("Not found","I could not find what you requested",404)
def error403(error): return stderr("Permission Denied","You do not have permission to access that page or perform that action.",403,template="no.html")
def error400(error): return stderr("Bad Request","Your request was invalid",400)