title: Is wrapping the httpClient considered to be a good practice?
body: <p>I would like to know what is the best practical solution to handle http errors. In the company that I worked we used to wrap all the httpClient verbs with out own functions and we were able to deal with errors, add token headers from those wrappers.</p>
  <p>I know that all these could be done using interceptors so my question is: are you using only interceptors and making the calls using the httpClient from your services or are you combining the two methods and still wrapping all the http verbs?</p>
  <p>Example of simple Get call wrapping:</p>
  <pre><code>  get&lt;T&gt;(api: string, headers?: HttpHeaders, params?: HttpParams): Observable&lt;T&gt; {
      return this.httpClient.get&lt;T&gt;(api, {headers, params}).pipe(
         catchError(error =&gt; {
         console.log(error.message);
         return throwError(error);
         }));
       }
  </code></pre>