title: Retry request with $http interceptor
body: <p>I'm sure there is an easy way to do what I want, I just cant wrap my head around it. How can I get the http interceptor in angular to retry a request if it fails? I imagine I would have to build some sort of promise in the request right? Then in the response I would have to check whether the response was an error and if so, do the promise? How is that done? I have been trying to adapt the example here: <a href="http://docs.angularjs.org/api/ng.%24http">http://docs.angularjs.org/api/ng.$http</a></p>
  
  <p>The reason I am trying to use an interceptor is because I need to add the token and a few other things to the request url, as well as some things to handle xdr's.</p>