canjs / can-ajax

jQuery-inspired AJAX request library.
https://canjs.com/doc/can-ajax.html
MIT License
5 stars 7 forks source link

Update can-ajax.js #33

Closed pYr0x closed 6 years ago

pYr0x commented 6 years ago

parse rejected response too this takes place, e.g. if we send a request to authorize a user. if the user authorization faild the repsonse from the server is a 401 status with some additional infos e.g. {message: 'Username and Passwort wrong'}

fix #32