title: Detecting HTTP Request Errors in Angular
body: <p>I am trying to detect request errors in my angular app in the form of a text message. Kinds of errors that I want to detect are the ones that come up in the chrome console such as network disconnected, ssl verification errors, timeout errors, unable to resolve hostname errors etc.</p>
  
  <p>I am using $http and have tried using interceptors like</p>
  
  <pre><code>$httpProvider.interceptors.push(function($q){
      return{
          requestError : function(req){
              //this is not hit
          }
      }
  }
  </code></pre>
  
  <p>Although I am unable to find exactly which conditions should cause the requestError interceptor to fire, I'm assuming the kinds of errors that I am trying to catch are not them.</p>
  
  <p>Does anybody know how I can catch client side http errors in angular? </p>