diff --git a/client/src/contexts/AuthProvider.tsx b/client/src/contexts/AuthProvider.tsx
index ced9a85..65d14a2 100644
--- a/client/src/contexts/AuthProvider.tsx
+++ b/client/src/contexts/AuthProvider.tsx
@@ -64,8 +64,9 @@
           case HttpStatusCode.Unauthorized:
             logout();
             break;
+          default:
+            throw e;
         }
-        throw e;
       }
     );
 
