[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
This commit is contained in:
konstantina.galouni 2019-02-19 12:18:46 +00:00
parent 53201aa7a4
commit ac20e5ae64
1 changed files with 3 additions and 1 deletions

View File

@ -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;