Support Questions
Find answers, ask questions, and share your expertise

Nifi: Setting Status Message for HandleHttpResponse Processor

Explorer

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

Explorer

@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

Explorer

@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

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

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.