title: xdomain net::ERR_NAME_NOT_RESOLVED
body: <p>I am writing AngularJS application and using xdomain (<a href="https://github.com/jpillora/xdomain" rel="nofollow">https://github.com/jpillora/xdomain</a>) proxy for CORS REST service.
  Everything works fine and erros are handled correctly excpet one case - when proxy.html required by xdomain library is not accesible (network or server error) 
  In that case I get:</p>
  
  <pre><code>GET https://server.test.pl:41012/proxy.html net::ERR_NAME_NOT_RESOLVED
    getFrame  xdomain.js:520
    (anonymous function)  xdomain.js:616
    facade.send.process   xdomain.js:446
    facade.send   xdomain.js:449
    (anonymous function)  angular.js:8521
    sendReq   angular.js:8315
    $HttpProvider.$get.serverRequest  angular.js:8049
    deferred.promise.then.wrappedCallback angular.js:11520
    (anonymous function)  angular.js:11606
    $RootScopeProvider.$get.Scope.$eval   angular.js:12632
    $RootScopeProvider.$get.Scope.$digest angular.js:12444
    $RootScopeProvider.$get.Scope.$apply  angular.js:12736
    (anonymous function)  angular.js:1438
    invoke    angular.js:3940
    doBootstrap   angular.js:1436
    bootstrap angular.js:1450
    (anonymous function)  app.js:86
    trigger   angular.js:2563
    (anonymous function)  angular.js:2843
    forEach   angular.js:325
    eventHandler  angular.js:2842
  </code></pre>
  
  <p>I want to intercept this error and handle it but problem is I don't know how:</p>
  
  <ul>
  <li>$http catch/error promise method is not called</li>
  <li>httInterceptor i wrote is not invoked</li>
  </ul>
  
  <p>How can I hadle this error?</p>