Backbone.sync Get All Response Error Status Codes
In the end, I want to catch a 302 error and redirect to my login page, but right now xhr.status is getting a status code of 200. Here's my current code: parentSyncMethod = Backbon
Solution 1:
302 response codes are automatically redirected by the browser, so you will not be able to catch that response. Your handler will only run once data comes back from the URL that things were redirected to.
I'd say that instead of using a 302 here, you probably should just return 200 and have the response data signal a redirect in it's own way.
Post a Comment for "Backbone.sync Get All Response Error Status Codes"