From 84543b38124a4544fc3a8e962e8ee474ba0495e2 Mon Sep 17 00:00:00 2001 From: Jason Cox Date: Tue, 14 Jan 2025 23:06:28 -0800 Subject: [PATCH] Move DISABLED to status code 200 --- proxy/server.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/proxy/server.py b/proxy/server.py index 2a3a2ad..57dabf4 100755 --- a/proxy/server.py +++ b/proxy/server.py @@ -92,7 +92,6 @@ DISABLED: Final[Set[str]] = set([ '/api/customer/registration', - '/networks' ]) WEB_ROOT: Final[str] = os.path.join(os.path.dirname(__file__), "web") SERVER_DEBUG: Final[bool] = bool(os.getenv("PW_DEBUG", "no").lower() == "yes") @@ -365,8 +364,7 @@ def do_GET(self): result = path_handlers[path]() elif path in DISABLED: result = self.send_json_response( - {"status": "404 Response - API Disabled"}, - status_code=HTTPStatus.NOT_FOUND + {"status": "404 Response - API Disabled"} ) elif path in ALLOWLIST: result = self.handle_allowlist(path)