Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.7.0
-
None
Description
Add HTTP status code to FileTransferError
<pre>
{
"code": FILE_NOT_FOUND_ERR,
"source": "http://example.com/missing.txt",
"target": "file:///mnt/sdcard/foo.txt",
"http_status": 404
}
{
"code": CONNECTION_ERR,
"source": "http://example.com/protected.txt",
"target": "file:///mnt/sdcard/bar.txt",
"http_status": 401
}
{
"code": CONNECTION_ERR,
"source": "http://example.com/admin.txt",
"target": "file:///mnt/sdcard/baz.txt",
"http_status": 403
}
</pre>