title: Angular HttpClient - error response only string
body: <p>I have question on HttpClient. I have GET method which it returns response 404 Not found with message. But my code dont gains response, but only string "Not found". How to change my code that it have http response with all attributes(status, message, body...)? Thanks</p>
  
  <pre><code>try {
          let response = await this.httpClient
             .get(environment.serverUrl + 'api/user/1',  { observe: 'response' })
             .toPromise();
          console.log(response); //object with status, message...
       catch (error) {
          console.log(error); //only string "Not found"
      }
  </code></pre>