title: Nuxt Axios Module read status code
body: <p>I'm calling a Rest API that returns at least 2 success status codes .
  A normal  200 OK and a 202 Accepted status code.
  Both return a Content in the body.
  If I execute in postman my calls I might get something like </p>
  
  <p>Status code: 202 Accepted. With Body "Queued" or some other values
  <a href="https://i.stack.imgur.com/lvODq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lvODq.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/82FH2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/82FH2.png" alt="enter image description here"></a>
  or</p>
  
  <p>Status code: 200 OK. With Body  "ValueOfSomeToken"
  <a href="https://i.stack.imgur.com/YOvMm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YOvMm.png" alt="enter image description here"></a>
  Making the call with axios in my nuxt app: </p>
  
  <pre><code>this.$axios.$get('/Controller/?id=1')
    .then((response)=&gt;{
       if(response=='Queued'){
           //Do something
       }
       else if (response=='Expired'){
         //Do something
       }
       else{
         //Do something
       }
    })
    .catch((error)=&gt;{
              console.log(error);
    });
  </code></pre>
  
  <p>..works, but I actually would like to get the status code (because 202 has other values for  the body responses)</p>
  
  <p>I have no idea how to read the status codes.</p>
  
  <p>I tried using (response,code) =>... but code is then nothing.</p>