As you know it\'s possible to use Interceptors in new versions of Angular 4.
In mine, I want to cancel a request in interceptor in some conditions. So i
I think all you have to do to cut the interceptor chain is to simply return an empty Observable like so:
Observable
import { EMPTY } from 'rxjs'; intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { if (stopThisRequest) { return EMPTY; } return next.handle(request); }