Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C55FFE44 for ; Wed, 27 Mar 2013 14:23:55 +0000 (UTC) Received: (qmail 3421 invoked by uid 500); 27 Mar 2013 14:12:55 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 3210 invoked by uid 500); 27 Mar 2013 14:12:42 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 2934 invoked by uid 99); 27 Mar 2013 14:12:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Mar 2013 14:12:12 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of vss123@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Mar 2013 14:12:03 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UKr4o-00039J-Pp for users@camel.apache.org; Wed, 27 Mar 2013 07:11:42 -0700 Date: Wed, 27 Mar 2013 07:11:42 -0700 (PDT) From: vss123 To: users@camel.apache.org Message-ID: <1364393502790-5729939.post@n5.nabble.com> Subject: Retry based on HTTP response codes MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.