How to cancel current request in interceptor - Angular 4 : <p>As you know it's possible to use <strong>Interceptors</strong> in new versions of Angular 4.</p>

<p>In mine, I want to cancel a request in interceptor in some conditions.
So is it possible? or maybe what should I ask is, Which way I should do that?</p>

<p>Also It will be Ok! if I found a way to rewrite some response to the request instead of canceling it.</p>
