diff --git a/src/controllers/client/ClientController.tsx b/src/controllers/client/ClientController.tsx index 72646f54f..5271df737 100644 --- a/src/controllers/client/ClientController.tsx +++ b/src/controllers/client/ClientController.tsx @@ -159,7 +159,7 @@ class ClientController { }) .catch((err) => { const error = takeError(err); - if (error === "Forbidden" || error === "Unauthorized") { + if (error === "Unauthorized") { this.sessions.delete(user_id); this.current = null; this.pickNextSession(); diff --git a/src/controllers/client/jsx/error.tsx b/src/controllers/client/jsx/error.tsx index c171c55a1..144b0fd9e 100644 --- a/src/controllers/client/jsx/error.tsx +++ b/src/controllers/client/jsx/error.tsx @@ -10,8 +10,9 @@ export function takeError(error: any): string { case 429: return "TooManyRequests"; case 401: + return "Unauthorized" case 403: - return "Unauthorized"; + return "Forbidden"; default: return "UnknownError"; }