I see the following example for calling a server-side resource:
UserSession.prototype.$save = function() {
return $http.post('/users/sign_in', {
"user" : {
"email" : this.email,
"password" : this.password,
"remember_me" : this.remember_me ? 1 : 0
}
});
};
My question is, is it possible to see the actual error response in this code in the event the call fails? How would the above get written for that?