This class provide some methods to use with interceptors. This is not coupled to the Angular Interceptors, and represents only the logic to handle the request on normal operations and on failure.
The class have 2 methods responseError(error, httpStatus) and processRequest(request). The first one simple receive the error in string and then display a Notify Error or Warning depending on httpStatus message in the screen
This example show the usage of the class with Angular, the angular interceptor forwards the content.
See the source file http_interceptors.dart and application.dart