From ac20e5ae6410cfad6cb21a26cf651b24c9c63778 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Tue, 19 Feb 2019 12:18:46 +0000 Subject: [PATCH] [Trunk|Library]: errorMessages.component: Add '401' code as 'FORBIDDEN'. git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@54864 d315682c-612b-4755-9ff5-7f18f6832af3 --- utils/errorMessages.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;