How to handle RxJs timeout complete - Angular HttpClient
This works
import { throwError, TimeoutError } from 'rxjs';
catchError((error) => { // Error...
// Handle 'timeout over' error
if (error instanceof TimeoutError) {
return throwError('Timeout Exception');
}
// Return other errors
return throwError(error);
})
I implemented this at my intecerptor that has other functionalities, the code here