I'm sorry.. but I have just found the solution.

what I needed was:

HttpOperationFailedException ex =
exchange.getProperty(Exchange.EXCEPTION_CAUGHT,
HttpOperationFailedException.class);
                ex.getStatusCode();

Thank you.



--
View this message in context: 
http://camel.465427.n5.nabble.com/onException-How-do-I-change-message-body-without-changing-response-status-tp5732419p5732424.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to