I have defined a class (ng g class ErrorService) that other classes use, in this class I do two operations but it does not run. For error 400 it enters the