title: observable catchError after request failure (axios/redux)
body: <p><strong>INTRO :</strong></p>
  
  <p>I have an app in reactjs, using redux, redux-observable and axios-observable.</p>
  
  <p>I face an issue with HTTP error handling.</p>
  
  <p>Let's take the following Epic :</p>
  
  <pre><code>const loginRequest = (action$, state$) =&gt; action$.pipe(
      ofType(UsersActions.loginRequest),
      switchMap((action: {payload:{email: string, password: string}}) =&gt; 
          HttpService.PostAsync&lt;any&gt;('token-auth', action.payload).pipe(
              map(response =&gt; {
                    // blabla
              }),
              catchError((error: string) =&gt; {
                  // blabla
              })
          )
      )
  );
  </code></pre>
  
  <p>the HttpService looks like this </p>
  
  <pre><code>public static PostAsync&lt;T&gt;(targetApi: string, data: any, basePath?: string): AxiosObservable&lt;T&gt; {
      return Axios.post(this.getBaseUrl(targetApi, basePath), data);
  }
  </code></pre>
  
  <p>So this works correctly, if the post request fail, I get into the <code>catchError</code>, if it doesn't i go into the normal <code>map</code>.</p>
  
  <p><strong>PROBLEM :</strong> </p>
  
  <p>I would like to intercept the response, in order to add a global app error handling, I setup the following function :</p>
  
  <pre><code>Axios.interceptors.response.use(response =&gt; {
      console.log(`[response] --&gt; ${response.status}`)
      return response;
  }, error =&gt; {
      console.log(`[error] --&gt; ${error}`)
      return throwError(error);
  })
  </code></pre>
  
  <p>I can now see the log, error, or response depending on the HTTP request result. BUT, I will ALWAYS go into the <code>map</code>, and never into the <code>catchError</code> of my Epic.</p>
  
  <p><strong>QUESTION :</strong></p>
  
  <p>How can I interpect the error, but still throw an error to the redux-observable epic ? </p>