diff -r 68a1b61ecd28 tools/python/xen/web/SrvBase.py --- a/tools/python/xen/web/SrvBase.py Mon Aug 28 13:08:41 2006 +0100 +++ b/tools/python/xen/web/SrvBase.py Tue Aug 29 12:54:28 2006 -0400 @@ -84,6 +84,7 @@ class SrvBase(resource.Resource): try: return op_method(op, req) except Exception, exn: + req.setResponseCode(http.INTERNAL_SERVER_ERROR, "Request failed: " + op) log.exception("Request %s failed.", op) if req.useSxp(): return ['xend.err', str(exn)]