Hello, Could you please advise why automatic retries happen even if I set maximumRedeliveries to 0? Basically I just want to disable retries. And also, how do I print HTTP response body in case it’s an error code? ${exception} only has a short description that HTTP call to my URL failed with error code. Server returns details in HTTP response. onException(Exception.class) .maximumRedeliveries(0); from("direct:send") .setHeader(Exchange.HTTP_METHOD, constant("POST")) .setHeader(Exchange.CONTENT_TYPE, constant("application/json")) .to("http://localhost:8100/") .log("${body}"); In 3 different cases (URL is not available, server code 400 or 500) I get numerous retries before it finally stop: 2016-10-12 13:11:57.397 INFO 58522 --- [] route2 : HTTP operation failed invoking http://localhost:8100/ with statusCode: 400 2016-10-12 13:11:57.397 INFO 58522 --- [] route2 : org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8100/ with statusCode: 400 2016-10-12 13:11:57.399 ERROR 58522 --- [] o.a.camel.processor.DefaultErrorHandler : Failed delivery for (MessageId: ID-raptor-local-64577-1476303106751-0-11 on ExchangeId: ID-raptor-local-64577-1476303106751-0-12). Exhausted after delivery attempt: 1 caught: org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://localhost:8100/ with statusCode: 400. Processed by failure processor: FatalFallbackErrorHandler[Pipeline[[Channel[Log(route2)[exchangeExceptionMessage]], Channel[Log(route2)[exchangeException]]]]]
-- View this message in context: http://camel.465427.n5.nabble.com/HTTP-keeps-retrying-after-maximumRedeliveries-set-tp5788708.html Sent from the Camel - Users mailing list archive at Nabble.com.