in src/app/main/notification.component.ts [69:90]
private showError(error: any): void {
switch (error.status) {
case 400:
this.showAlert('Unexpected error',
'We are very sorry, it seems the request you sent could not be accepted by our servers.'
);
break;
case 404:
this.showAlert('Resource not available',
'It seems the resource you requested is either not available or you don\'t have the permission to access it.'
);
break;
case 504:
case 500:
this.showAlert('Service not available',
'We are very sorry, it seems there is a problem with our servers. Please contact your administrator if the problem occurs.'
);
break;
default:
break;
}
}