Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-790

Add HTTP status code to FileTransferError

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.0
    • Fix Version/s: 1.9.0
    • Component/s: cordova-js
    • Labels:
      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>

        Attachments

          Activity

            People

            • Assignee:
              filmaj Filip Maj
              Reporter:
              dcoleman Don Coleman
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: