camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Soto <>
Subject Accessing the HTTP Response Code with netty4
Date Fri, 08 Apr 2016 14:39:05 GMT

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:

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

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,

How can I check the HTTP response code?

Best regards,
Alex soto

View raw message