phonegap / phonegap-plugin-contentsync

Download and cache remotely hosted content
Apache License 2.0
206 stars 98 forks source link

Expose HTTP Response codes #158

Closed arumsey closed 7 years ago

arumsey commented 7 years ago

The ContentSync.ERROR_STATE INVALID_URL_ERR does not provide enough information on why the sync failed since this error also includes response codes that are >= 400.

Would it be possible to expose the server HTTP response code during a sync so that a client could throw a more useful error message if it chooses?

macdonst commented 7 years ago

@arumsey can you give content sync a try from master and see if that fits your needs. If so I'll release a new version.

@imhotep when you get a chance give my iOS changes a quick review.