Currently, I am attempting to create a universal error handler for my website utilizing $http interceptors. However, it seems that the interceptors are not functioning as intended.
I have set up interceptors for 'response' and 'responseError', but they do not trigger when the server is offline or unresponsive (net::ERR_CONNECTION_REFUSED). This lack of triggering makes sense since there is no response to intercept in these situations.
I am curious if there exists a general method for capturing these errors, instead of relying on the $httpPromise's error callback for each individual request.