Apache Cordova
  1. Apache Cordova
  2. CB-790

Add HTTP status code to FileTransferError

    Details

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

        Activity

        Hide
        Filip Maj added a comment -

        Setting up parent task for cordova-js

        Show
        Filip Maj added a comment - Setting up parent task for cordova-js
        Show
        Don Coleman added a comment - https://github.com/apache/incubator-cordova-docs/pull/12
        Hide
        Filip Maj added a comment -

        The JS changes have been committed.

        Show
        Filip Maj added a comment - The JS changes have been committed.
        Hide
        Filip Maj added a comment -

        Docs, JS, Android, BB, iOS and WP7 have been updated.

        Show
        Filip Maj added a comment - Docs, JS, Android, BB, iOS and WP7 have been updated.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development