title: Angular 8 - code after navigating from within interceptor
body: <p>What happens if I navigate from within an interceptor? See my code below. Will it neglect all other code that should have come after routing, or will it continue to execute the code? Will it reach <code>throwError</code> and will it reach the service doing the HTTP request and the component calling the service request method in case of error 500 (also what happens at 401)?</p>
  
  <pre><code>    intercept(request: HttpRequest&lt;any&gt;, next: HttpHandler): Observable&lt;HttpEvent&lt;any&gt;&gt; {
      return next.handle(request).pipe(
          catchError(err =&gt; {
  
              let errorMessage = '';
              if(err instanceof HttpErrorResponse) { // server side error
  
                  switch (err.status) { 
                      case 401:
                          errorMessage = "Ongeldige inloggegevens"  
                          break;
                      case 500:     //server error
                          let error = "Er is iets mis gegaan! Probeer het later nog eens.";
                          this.router.navigate(['error500'], { state: { message: error, title: 'Error ' + err.status }});
                          break;
              }
  
              return throwError(errorMessage);
          }
      }
    ))
  }
  </code></pre>