I have an interceptor that catches 404 errors
intercept(req: HttpRequest, next: HttpHandler): Observable> {
return next.handle(req).pipe(retry(1),
catchError((error) => { // catch error after retry
console.log('err');
if (error instanceof HttpErrorResponse) {
if (error.status === 404) {
console.log('errrr');
}
}
}
problem is when error is NOT 404 error the app stop working as it should after I encountered a 422 error. The app should continue working as is if the error is not 404.. I think it has something to do with the catcherror but Im lost. I appreciate any help.