mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Status 410 object deleted
Added a message to ProcessErrors to handle HTTP 410 errors.
This commit is contained in:
parent
356d4edc89
commit
7e77a756d9
@ -154,6 +154,8 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
|
||||
msg += 'Please contact your system administrator.';
|
||||
}
|
||||
Alert(defaultMsg.hdr, msg);
|
||||
} else if (status === 410) {
|
||||
Alert('Deleted Object', 'The requested object was previously deleted and can no longer be accessed.');
|
||||
} else if ((status === 'Token is expired') || (status === 401 && data.detail && data.detail === 'Token is expired') ||
|
||||
(status === 401 && data.detail && data.detail === 'Invalid token')) {
|
||||
$rootScope.sessionTimer.expireSession();
|
||||
|
Loading…
Reference in New Issue
Block a user