Hi,
Did you tried with exchange.getOut().setHeader(
Exchange.HTTP_RESPONSE_CODE,
new Integer(522));
Best regard
Pierre-Alban DEWITTE
@__pad__
On Wed, Oct 29, 2014 at 5:01 PM, Henryk Konsek hekon...@gmail.com wrote:
Hi,
from(direct:channel2).onException(Exception.class).process(new
.n5.nabble.com/I-cant-throw-the-correct-HTTP-status-codes-from-camel-tp5758282p5758335.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I cant throw the correct HTTP status codes from camel.
I have a route like this:
from(direct:channel2).onException(Exception.class).process(new
LogError(HubConstants.CHANNEL2.getValue())).end().recipientList()
.method(Util.class, getEndpoint);
The endpoint is down, and i
Hi,
from(direct:channel2).onException(Exception.class).process(new
LogError(HubConstants.CHANNEL2.getValue())).end().recipientList()
.method(Util.class, getEndpoint);
Can you share the consumer part of the route with us? :)
Cheers.
--
Henryk Konsek