<p dir="auto">Because of the privileges control of the server,<br>
The Status Code that is sometimes returned is 401<br>
When I tried to process Status Code, I triggered an exception directly.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26639880/39346040-af7cf77a-4a1e-11e8-988a-bd654dc3218f.png"><img src="https://user-images.githubusercontent.com/26639880/39346040-af7cf77a-4a1e-11e8-988a-bd654dc3218f.png" alt="qq 20180427132351" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26639880/39346141-33446296-4a1f-11e8-9fcf-71f3e821530a.png"><img src="https://user-images.githubusercontent.com/26639880/39346141-33446296-4a1f-11e8-9fcf-71f3e821530a.png" alt="qq 20180427133031" style="max-width: 100%;"></a></p>
<p dir="auto">Hello All,</p>
<p dir="auto">We are working on react-redux client application where axios library used for any XHR request. Sometimes backend service (Spring Boot REST endpoint) returns 4xx/5xx series HTTP response code. While we are trying to catch response status code from error object, found it is not available. Is there anyway HTTP response code can be  extracted during error scenarios.  We are using axios version 0.15.2.</p>
<p dir="auto">Look forward to hear back from community.</p>
<p dir="auto">Thanks</p>
<p dir="auto">Context</p>
<ul dir="auto">
<li>axios version: <em>e.g.: v0.15.2</em> or v0.16.2</li>
<li>Environment: <em>e.g.: node v6.9.4, chrome 54, windows 7</em></li>
</ul>