camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Prechtl <>
Subject HTTP component: Handling error codes
Date Mon, 05 Nov 2012 16:21:16 GMT
Hi there,

I'm maintaining an existing camel based solution that integrates a REST based web-service.
Right now I face the problem, that in case of a non 200 HTTP response, the route doesn't execute
past the http-component, meaning processors after the http-component are not called.
The HTTP component has the  "throwExceptionOnFailure" parameter set to "false", as far as
I understand this should result in a continued route execution after a 400 error code (in
my case).

Here's the route:

.setHeader(Exchange.HTTP_QUERY, simple("bridgeEndpoint=true&throwExceptionOnFailure=false"))

"someProcessorAfterHttpComponent" isn't executed anymore.

How come, any ideas?

Thanks for you inputs!


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message