Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 08099CA3C for ; Mon, 14 May 2012 18:51:38 +0000 (UTC) Received: (qmail 50929 invoked by uid 500); 14 May 2012 18:51:37 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 50906 invoked by uid 500); 14 May 2012 18:51:37 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 50898 invoked by uid 99); 14 May 2012 18:51:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2012 18:51:37 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simon.macdonald@gmail.com designates 209.85.160.47 as permitted sender) Received: from [209.85.160.47] (HELO mail-pb0-f47.google.com) (209.85.160.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2012 18:51:31 +0000 Received: by pbbrq2 with SMTP id rq2so5728583pbb.6 for ; Mon, 14 May 2012 11:51:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=+k31of0Nz7n1l5GN53KHvNdtn04y41Rt03f8/rbShfk=; b=VhjczedScidnV1O1F+5kpzXgM5kUCJiYhsYzCwQgahM4a3vKNgTUjIp+s8TXJofeHU paOgm0nNx3oq42QKYhJG3gbfv+mC79sEURZwz8Vv5wX4HRHPwdDBEV5342taeD07o9f6 TWnCEigyxTwKfdXKMXhjXQFQuJ9HAxJnY8x6HuDXmr4X3WZsmv5mgb6crYUCJdckJVgN vmWU3B6F3tpxa0qmZDb2Oi4hUyz9pIohWUxQxPeYK6+nFCwf77R3VdV90zIOvcMuLPXE pN7XhPVNVAj4oF1svUAzBvunN3nswmk7P6weFH0NfhvPFJhJDfIBKOKm5qFK8DWCR8rE NRKg== Received: by 10.68.225.230 with SMTP id rn6mr931069pbc.70.1337021470271; Mon, 14 May 2012 11:51:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.36.225 with HTTP; Mon, 14 May 2012 11:50:50 -0700 (PDT) In-Reply-To: References: From: Simon MacDonald Date: Mon, 14 May 2012 14:50:50 -0400 Message-ID: Subject: Re: Adding HTTP status code to FileTransferError To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=047d7b2ed963cae74e04c00391bb --047d7b2ed963cae74e04c00391bb Content-Type: text/plain; charset=ISO-8859-1 Sounds good to me. I'd probably skip the "http_message" as you pretty much get all you need from the status and you don't need to localize the string. Simon Mac Donald http://hi.im/simonmacdonald On Mon, May 14, 2012 at 9:29 AM, Don Coleman wrote: > I'd like to add HTTP Status Code and HTTP Status Message to > FileTransferError. > > Any objections? > > { > "code": FILE_NOT_FOUND_ERR > "source": "http://example.com/missing.txt", > "target": "file:///mnt/sdcard/foo.txt", > "http_status": 404 > "http_message": "Not Found" > } > > { > "code": CONNECTION_ERR > "source": "http://example.com/protected.txt", > "target": "file:///mnt/sdcard/bar.txt", > "http_status": 401 > "http_message": "Authorization Required" > } > > { > "code": CONNECTION_ERR > "source": "http://example.com/admin.txt", > "target": "file:///mnt/sdcard/baz.txt", > "http_status": 403 > "http_message": "Forbidden" > } > --047d7b2ed963cae74e04c00391bb--