Thanks Willem
Of course it was quite simple in the end. Just do
<onException>
<exception>org.apache.camel.component.cxf.CxfOperationException</exception>
<onWhen>
<simple>${exception.statusCode} == 404</simple>
</onWhen>
<handled><constant>true</constant></handled>
</onException>
I was just focusing on getting the http status code from the header, when I
just could have used the ${exception}.
best,
Preben
--
View this message in context:
http://camel.465427.n5.nabble.com/Getting-http-status-code-from-cxfrs-in-onException-handler-tp5744066p5744290.html
Sent from the Camel - Users mailing list archive at Nabble.com.