title: $Http.get(), how to deal with 404 response from WebAPI
body: <p>On my web application I perform a <code>GET</code> command to a remote HTTP WebAPI service</p>
  
  <pre><code>$http.get(url).then(function(data) { do_something(); });
  </code></pre>
  
  <p>everything works fine when the WebAPI returns some data, however the function doesn't seem to trigger when the WebAPI return a 404 error (no data to display).
  How can I set a callback for it?</p>