def manage_http_exception(code, message): exc = default_exceptions.get(code, webob.exc.HTTPInternalServerError) return exc("%s" % message)