title: The second http request doesn’t work if I receive a 401 error
body: <p>I tried to make a login in an Angular 4 application. I made the following request:</p>
  
  <pre><code>this.http.post(`https://api.knolge.com/auth/login`,
    'email=' + credential.email + '&amp;password=' + credential.password,
    {
      headers: new HttpHeaders().set('Content-Type', 'application/x-www-form-urlencoded'),
    })
    .catch((err: HttpErrorResponse) =&gt; {
      console.log(err.message);
      return Observable.throw(err.message);
    })
    .subscribe(data =&gt; console.log(data), err =&gt; console.log(err));
  </code></pre>
  
  <p>When receiving a 401 error from the server, the code from the catch block isn't executed, not is the code from subscribe, but if i try to make another login request without refreshing the page, the request isn't made. If the login is successful the first time, all is fine and it works. </p>
  
  <p>How can I debug this and how should I resolve this issue?</p>