[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:
parent
53201aa7a4
commit
ac20e5ae64
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue