title: AngularJS $http and how to get error response
body: <p>I see the following example for calling a server-side resource:</p>
  
  <pre><code>UserSession.prototype.$save = function() {
      return $http.post('/users/sign_in', {
        "user" : { 
          "email" : this.email,
          "password" : this.password,
          "remember_me" : this.remember_me ? 1 : 0 
        }   
      }); 
    };  
  </code></pre>
  
  <p>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?</p>