Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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?
Hello,
Have you tried to set the Condition inside the component as
"${header.CamelHttpResponseCode} == 202"
Best regards
Sabrina