1
0
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:
Chris Houseknecht 2014-07-22 10:55:20 -04:00
parent 356d4edc89
commit 7e77a756d9

View File

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