Hi

You can use setOutHeader

But yeah I think setHeader should support both situations (with and
without the log).
Feel free to log a JIRA ticket.



On Fri, May 17, 2013 at 10:06 AM, clement tamisier
<clement.tamis...@gmail.com> 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.



-- 
Claus Ibsen
-----------------
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to