From 82a79f197107534776d34a53d874c97cefd395b0 Mon Sep 17 00:00:00 2001 From: Matt Gilman Date: Thu, 30 Jul 2015 22:57:56 -0400 Subject: [PATCH] NIFI-798: - Adding special handling for ajax failures with a response code of 201. --- .../nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-common.js b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-common.js index e08ad9e37f..06c34f9e65 100644 --- a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-common.js +++ b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-common.js @@ -252,7 +252,7 @@ nf.Common = { } else { $('#message-content').text(xhr.responseText); } - } else if (xhr.status === 200) { + } else if (xhr.status === 200 || xhr.status === 201) { $('#message-title').text('Parse Error'); if ($.trim(xhr.responseText) === '') { $('#message-content').text('Unable to interpret response from NiFi.');