Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Nifi: Setting Status Message for HandleHttpResponse Processor

avatar
Contributor

Hey Guys,


In addition to sending back the status code (which I do with HandleHttpResponse => Http Response Code"), I would like to set a custom status message. For example:

Status: 400

Status Message: "You are not authorized"

Any pointers would be appreciated.

1 ACCEPTED SOLUTION

avatar
Contributor

@Sonny Chee

You can send the status message as part of Dynamic Properties, this would be added to HTTP header.

-

If you found this answer has addressed your question, please take a moment to log in and click the "accept" link on the answer.

Thanks

Kiran

View solution in original post

2 REPLIES 2

avatar
Contributor

@Sonny Chee

You can send the status message as part of Dynamic Properties, this would be added to HTTP header.

-

If you found this answer has addressed your question, please take a moment to log in and click the "accept" link on the answer.

Thanks

Kiran

avatar
New Contributor

@Kiran Nittala, @Sonny Chee, What exactly would I need to name the dynamic property to have its content sent as the HTTP status message?

Thanks,

Lars