The HttpOperationFailedException class has methods to get the response code.
On Wed, Mar 27, 2013 at 3:11 PM, vss123 <vss...@gmail.com> wrote: > Hi, > > We use camel 2.10.3 with Scala DSL. > > We have route that does a http post. We want to retry based on the response > code. > For e.g. no retries for 4xx and 2 retries for 5xx > > We tried using handle[HttpOperationFailedException] but not sure how to get > the response code within that. > Can you help us with whats the best way to handle this case? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Retry-based-on-HTTP-response-codes-tp5729939.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- 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