title: Disable the error of http method server in browser console Angular 8
body: <p>I use Angular 8 and I want disable any errors HTTP in browser console, like this : </p>
  
  <p><em><code>zone-evergreen.js:2828 POST http://localhost:3000/api/auth/login 401 (Unauthorized)</code></em></p>
  
  <p>In my Error-Interceptor.ts
  I use this code: </p>
  
  <pre><code>@Injectable()
  export class ErrorInterceptor implements HttpInterceptor {
    constructor(
      private _tokenService: TokenService,
      private _routesService: RoutesService,
      private _toastService: ToastService
    ) { }
  
    intercept(
      request: HttpRequest&lt;any&gt;,
      next: HttpHandler
    ): Observable&lt;HttpEvent&lt;any&gt;&gt; {
      return next.handle(request).pipe(
        catchError(err =&gt; {
          if (err.status === 401 || err.status === 403) {
            this._tokenService.logout();
            this._routesService.navigateToRoute("login");
          }
          const error = err.error.message || err.statusText;
          this._toastService.showError(error, '');
          // return throwError(error);
          return EMPTY;
        })
      );
    }
  }
  </code></pre>