Description
Intercepts all$http requests that return with an error. It will then broadcast the event httpInterceptorError
which will provide the error object containing the status code, status text and other error information.
Usage
Events
httpInterceptorError
Broadcast the eventhttpInterceptorError when a $http request receives an error,
this will provide the error object containing the status code, status text and other error information.