You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Nadeem (Jira)" <ji...@apache.org> on 2021/05/27 10:34:00 UTC

[jira] [Created] (NIFI-8635) Add Status Message natively to HandleHTTPResponse

Nadeem created NIFI-8635:
----------------------------

             Summary: Add Status Message natively to HandleHTTPResponse
                 Key: NIFI-8635
                 URL: https://issues.apache.org/jira/browse/NIFI-8635
             Project: Apache NiFi
          Issue Type: Improvement
            Reporter: Nadeem
            Assignee: Nadeem


HTTP Status Codes are helpful while responding back to the successful requests but they become little less meaningful when something actual failed internally such as Processor/DataFlow errored and message needs to be communicated back to client to make little more meaningful. This is usually done today by using another Processor like ReplaceText which actually writes failed message before sending to HandleHTTPResponse.

HandleHTTPRequest --> .... ReplaceText -> HandleHTTPResponse

This sequence becomes little overloaded when failures need to be handled at different step such as processor exception/custom message etc.

Introducing new optional property 'HTTP Status Message' which can remove the need to use ReplaceText can be a lot beneficial where dataflow users can directly write the message or use EL from Parameter/Variable Registry to denote canonical messages based on status code which can used across all HandleHTTPResponse directly. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)