Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Override http status using CamelHttpResponseCode property

Hi,

I am trying to call an API through chttp component after that I have DSL I am overriding the Response using property CamelHttpResponseCode. I have used this property in DSL as

.removeHeaders("*")
.setHeader("CamelHttpResponseCode",constant(202))

But in Postman I get 200 OK instead of 202 Accepted.
so how can I override this status?

Labels (3)
1 Reply
Anonymous
Not applicable
Author

Hello,

Have you tried to set the Condition inside the component as

"${header.CamelHttpResponseCode} == 202"

0683p000009M0b5.png0683p000009M0bA.png

Best regards

Sabrina