incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Maj <...@adobe.com>
Subject Re: Adding HTTP status code to FileTransferError
Date Mon, 14 May 2012 17:57:21 GMT
Thanks!

On 5/14/12 10:34 AM, "Don Coleman" <don.coleman@gmail.com> wrote:

>I'll work on iOS, Android and (probably) WP7 implementations and
>submit some patches.
>
>On Mon, May 14, 2012 at 12:39 PM, Filip Maj <fil@adobe.com> wrote:
>> +1
>>
>> On 5/14/12 6:29 AM, "Don Coleman" <don.coleman@gmail.com> 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"
>>>}
>>


Mime
View raw message