From 4485c7a5d206273dac7da67bde2f898b32cb972e Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 9 Aug 2025 21:38:31 +0400 Subject: [PATCH] refac --- backend/open_webui/utils/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/utils/auth.py b/backend/open_webui/utils/auth.py index 5f30738cfe..228dd3e30a 100644 --- a/backend/open_webui/utils/auth.py +++ b/backend/open_webui/utils/auth.py @@ -221,7 +221,7 @@ def get_current_user( token = request.cookies.get("token") if token is None: - raise HTTPException(status_code=403, detail="Not authenticated") + raise HTTPException(status_code=401, detail="Not authenticated") # auth by api key if token.startswith("sk-"):