Support Questions

Find answers, ask questions, and share your expertise

How can I set static response using HandleHttpResponse processor or other processor.

avatar

Currently, I am using HandleHttpResponse processor to set http status code but I also want to send static body. I tried to add property but it is not working. Can anyone help me out with some pointers on what to try?

1 ACCEPTED SOLUTION

avatar

The flowfile content should be returned as the response body. Have you provided content on the incoming flowfile?

View solution in original post

4 REPLIES 4

avatar

The flowfile content should be returned as the response body. Have you provided content on the incoming flowfile?

avatar

I do not want to send content of incoming flowfile rather I would like set my own response body which will be static.

avatar

Use a ReplaceText processor to replace the content of the incoming flowfile with the static response body. Because you can provide multiple outgoing connections from the previous processor, you will not lose the flowfile content, but this is the way to control the response via HandleHTTPResponse.

avatar

Thank you! It worked for me.