It looks like the header just set to the in message, we should let Camel check 
the header in the in message first.


--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Friday, May 17, 2013 at 4:06 PM, clement tamisier wrote:

> Hi,
>  
> If I define a route like this:
>  
> from("<MyUrl>/test")
> .setHeader(Exchange.HTTP_RESPONSE_CODE, simple("400"));
> my http client get a 200 response code.
>  
> If a add something else on the route like:
> from("<MyUrl>/test")
> .setHeader(Exchange.HTTP_RESPONSE_CODE, simple("400"))
> .log("400").
>  
> my http client get a 400 response code as expected.
>  
> Is there something i do wrong.
> BR
>  
>  
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/route-http-code-tp5732728.html
> Sent from the Camel Development mailing list archive at Nabble.com 
> (http://Nabble.com).



Reply via email to