title: Can Axios differentiate between "no network" and "network disconnected"
body: <p>Is it possible for Axios to differentiate between the following:</p>
  
  <ul>
  <li>A request which fails because the client has no network connection at
  the point when the request was made - (ERR_CONNECTION_REFUSED).</li>
  <li>A request which fails because network connectivity is lost <em>after</em> the 
  request was made but <em>before</em> the response was received - (ERR_INTERNET_DISCONNECTED).</li>
  </ul>
  
  <p>It seems that in both cases, all we get back is a rather unhelpful "Network Error" message...</p>
  
  <p>The Axios documentation (<a href="https://github.com/axios/axios#handling-errors" rel="noreferrer">https://github.com/axios/axios#handling-errors</a>) suggests that in the latter case, <code>error.request</code> should be populated, but I have been unable to replicate <em>any</em> scenario where <code>error.request</code> exists. In both of the above scenarios, I get an error object looking like this:</p>
  
  <pre><code>{
    config: { ... },
    response: undefined,
    message: "Network Error",
    stack: "Error: Network Error at createError (http://localhost:3000/static/js/bundle.js:1636:15) at XMLHttpRequest.handleError (http://localhost:3000/static/js/bundle.js:1170:14)"
  }
  </code></pre>