mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 11:41:08 -03:30
Status 410 object deleted
Added a message to ProcessErrors to handle HTTP 410 errors.
This commit is contained in:
@@ -154,6 +154,8 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
|
|||||||
msg += 'Please contact your system administrator.';
|
msg += 'Please contact your system administrator.';
|
||||||
}
|
}
|
||||||
Alert(defaultMsg.hdr, msg);
|
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') ||
|
} else if ((status === 'Token is expired') || (status === 401 && data.detail && data.detail === 'Token is expired') ||
|
||||||
(status === 401 && data.detail && data.detail === 'Invalid token')) {
|
(status === 401 && data.detail && data.detail === 'Invalid token')) {
|
||||||
$rootScope.sessionTimer.expireSession();
|
$rootScope.sessionTimer.expireSession();
|
||||||
|
|||||||
Reference in New Issue
Block a user