title: "message": "Call to undefined method Tymon\\JWTAuth\\Exceptions\\TokenInvalidException::getStatusCode()
body: <p>i have done it in two ways. When i directly pass Http status code it works but when i write $exception->getStatusCode(), i am getting error .I don't know whats wrong here.
  <a href="https://i.stack.imgur.com/Pjn9r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pjn9r.png" alt="I get error doing this way"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Zancf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Zancf.png" alt="And it works if i do this way."></a></p>
  
  <p>The Second way is working fine but 
  what i want is ,it automatically generating the status code rather than being specific .</p>