I have an Angular app, for which I want to handle 404s form an API end point. The key components are like so:
// app.js var myApp = angular.module(\'myApp\', [\
I think the structure of you interceptor might be off. I posted an answer with a sample interceptor here (Handle HTTP 302 response from proxy in angularjs) that you might find useful. It works for me on a daily basis.