Using 401 as unauthorized code
Change-Id: I9bbc6e558c1c2dd0dd2e859580da0776320292d0
diff --git a/src/interceptors.ts b/src/interceptors.ts
index 3ac672d..80be130 100644
--- a/src/interceptors.ts
+++ b/src/interceptors.ts
@@ -12,8 +12,7 @@
export function userStatusInterceptor($state: angular.ui.IStateService) {
const checkLogin = (res) => {
- // NOTE why are we returning 403 in place of 401??
- if (res.status === 403 || res.status === -1) {
+ if (res.status === 401 || res.status === -1) {
$state.go('login');
}
return res;