title: handling $http.get and $http.post errors in Angularjs
body: <p>Folks,</p>
  
  <p>I am using <code>$http.get</code> and <code>$http.post</code> all over my code. I am kind of lost as to how to handle errors that occur during these calls in a global fashion. 
  Currently I have <code>.success(doSomething).error(doSomething)</code> on every call.</p>
  
  <p>I would like to change this and instead simply display the error on top of my page.</p>
  
  <p>I read about using interceptors with <code>myapp.something</code>. But I absolutely do not understand how to implement this. </p>
  
  <p>Kindly assist</p>