Hello:

I am using Camel 2.16.2  and I have a route with a Netty4 HTTP producer calling 
a remote HTTP server.  I am passing the option throwExceptionOnFailure=false.  
Upon return,  I need to check the HTTP response code like this:

<filter>
        <simple>${header.CamelHttpResponseCode} == 403</simple>
        
        . . . 
</filter>


The problem is that the CamelHttpResponseCode is always null. I can see it the 
trace logs:

Headers:{CamelHttpResponseCode=null, Connection=keep-alive, 
CamelHttpResponseText=Not Modified, Content-Length=0}


How can I check the HTTP response code?


Best regards,
Alex soto




Reply via email to