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

Add HTTP status code to FileTransferError

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7.0
    • 1.9.0
    • cordova-js
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: