title: How to rethrow errors of HttpService call with NestJS?
body: <p>I am using NestJS to essentially proxy a request to another api using the <code>HttpService</code> (an observable wrapped Axios library). For example: </p>
  
  <pre><code>return this.httpService.post(...)
    .pipe(
      map(response =&gt; response.data),
    );
  </code></pre>
  
  <p>This works properly when the call is successful; however, if there's an error (4xx), how do I properly return the status and error message? </p>
  
  <p>I've figured out how to do it with promises, but if possible I would like to stay within an observable.</p>