title: Checking if a 404 error was returned in the axios library
body: <p>A 404 error is not returned directly as <code>res.status</code> in the <code>axios</code> library but thrown in the catch as an error.
  My question is now can I somehow query in the catch, which number the error has?</p>
  <pre><code>.catch(error =&gt; {
  if(error.status === 404)     
  // do something     
  }
  </code></pre>
  <p>Or how can I use the axios library to query if it is a 404 error or not?</p>
  <pre><code>const handleLogin = () =&gt; {
          axios.post('localhost:4000', {&quot;email&quot;:`${email}`, &quot;password&quot;:`${password}`})
            .then(res =&gt; {
              console.log(res);
              console.log(res.data);
              console.log(res.status);
              if(res.status === 200) {
                setValidationNoExist(true);
                 history.push({
                  pathname: '/app',
                  state: {
                    email: email,
                    name: password,
                  },
                })
              }
              else if(res.status === 203) {
                setValidationWrong(false);
              }
              else if(res.status === 404) {
                  setValidationPending(false);
              }
               else if(res.status === 204) {
                  setValidationNoExist(false);
                }
            })
            .catch(error =&gt; {
              console.log(error)
              setValidationNoExist(false);
          })
         };
  </code></pre>