title: Axios : Add validateStatus hook to get HTTP 304 response
body: <p>I’m trying to edit the validateStatus function of axios to get the response from an HTTP 304, I have tried a lot of methods found on Stack Overflow but none of them seems to work, I tried :</p>
  
  <p>In the create :</p>
  
  <pre><code>axios.create({
    validateStatus: (status) =&gt; {
      return status &gt;= 200 &amp;&amp; status &lt;= 304;
    },
  });
  </code></pre>
  
  <p>In my get request :</p>
  
  <pre><code>return axios.get(`${FETCH_IDENTITY_URL}`, {
    validateStatus: (status) =&gt; {
      return status &gt;= 200 &amp;&amp; status &lt;= 304;
    },
  })
  .then(response =&gt; response.data);
  </code></pre>
  
  <p>Do you have an exemple to do that ?</p>