Skip to main content

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 event httpInterceptorError when a $http request receives an error, this will provide the error object containing the status code, status text and other error information.

Usage

Type:

broadcast

Target:

root scope