Do not rethrow exception when 401 error is properly handled

This fixes an issue where the exception would appear as an Axios error
in the console, even though it is normal for the server to return a 401
when the access token is invalid. Since we already handle this error,
there is no need to rethrow.

GitLab: #185
Change-Id: Ie13fff63efb716caf6605a5d1f79204bcb7e93cb
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;
       }
     );