diff --git a/utils/errorMessages.component.ts b/utils/errorMessages.component.ts index 44ec45f7..1a3d31df 100644 --- a/utils/errorMessages.component.ts +++ b/utils/errorMessages.component.ts @@ -61,7 +61,9 @@ import {ErrorCodes} from './properties/errorCodes'; } public getErrorCode(status: string) { - if(status == "403") { + if(status == '401') { + return this.errorCodes.FORBIDDEN; + } else if(status == "403") { return this.errorCodes.FORBIDDEN; } else if(status == "204") { return this.errorCodes.NONE;