title: Catch() not handling 404
body: <p>I'm making a script to fetch some data from my api:</p>
  
  <pre><code>const success = (response) =&gt; {
    console.log(response);
  };
  
  const failed = (error) =&gt; {
    console.log(error);
  };
  
  axios.$http.get('/somedata')
    .then((response) =&gt; {
      success(response.data);
    })
    .catch((error) =&gt; {
      failed(error);
    });
  </code></pre>
  
  <p><code>/somepage</code> is a non-existing page so it returns a 404. But the catch is not handling this. Why not? In my console I have the error <code>TypeError: Cannot read property 'data' of undefined</code>. Why does it not run the <code>failed()</code> function? I don't understand.</p>