title: call a function in case of httpClient timeout in Angular
body: <p>I have a function sending a few requests on the server with a timeout each like:</p>
  
  <pre><code>this.httpClient.get(url, { headers: headers })
          .timeout(30000)
          .subscribe(
              (response) =&gt; {
                  ...
              },
              error =&gt; {
                  ...
              }
                  ...
              );
  </code></pre>
  
  <p>In case of timeout (30s), everyone request gets canceled, which is understandable. 
  My problem is, that in case of a timeout, the canceled request is not seen as an error, so it doesn't go to the error-part of the request.
  Are there any possibilities to call a function in this case?</p>