[
https://issues.apache.org/jira/browse/NIFI-4597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16261382#comment-16261382
]
ASF GitHub Bot commented on NIFI-4597:
--------------------------------------
Github user joewitt commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2283#discussion_r152381607
--- Diff:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ListenHTTP.java
---
@@ -126,6 +126,12 @@
.addValidator(StandardValidators.REGULAR_EXPRESSION_VALIDATOR)
.required(false)
.build();
+ public static final PropertyDescriptor RETURN_CODE = new
PropertyDescriptor.Builder()
+ .name("Return Code")
+ .description("The HTTP return code returned after every HTTP
call")
+ .required(true)
--- End diff --
since it is defaulting to 200 which is what it always was and is optional
I'd recommend we remove this line
> Add a property to override HTTP return code in ListenHTTP processor
> -------------------------------------------------------------------
>
> Key: NIFI-4597
> URL: https://issues.apache.org/jira/browse/NIFI-4597
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Core Framework
> Affects Versions: 1.4.0
> Reporter: Sébastien Bouchex Bellomié
> Fix For: 1.5.0
>
>
> Current ListenHTTP processor is always returning 200 as HTTP return code but
> is some case, 204 may be required.
> I know that I may use the HandlerHttpRequest and HandlerHttpResponse couple
> but that's a bit overkill to this.
> The idea is to have a property (default value is 200) giving the ability to
> override the return code.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)