From 7e77a756d9e1eef1d96fcf6b8dd21092140b0310 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Tue, 22 Jul 2014 10:55:20 -0400 Subject: [PATCH] Status 410 object deleted Added a message to ProcessErrors to handle HTTP 410 errors. --- awx/ui/static/lib/ansible/Utilities.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awx/ui/static/lib/ansible/Utilities.js b/awx/ui/static/lib/ansible/Utilities.js index e2ec43225c..6c96ea6e11 100644 --- a/awx/ui/static/lib/ansible/Utilities.js +++ b/awx/ui/static/lib/ansible/Utilities.js @@ -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();