title: How to console.log the http response?
body: <p>I'm using the following async await with a get call. If there is an error the server also sends a response, a text-message. The Text-message can be seen in the network-tab. How can I console log that message, as it is not part of the error in the catch-block.</p>
  
  <pre><code>callServer = async () =&gt; {
      const path = '...';
      try {
        await axios.get(path);
        console.log('successful');
      } catch (error) {
        console.log(error);
      }
    };
  </code></pre>