At the moment I am developing an API which returns a token with OAuth2, at the moment I try to enter everything well, now I would like to know how to obtain the 401 code to send it in the header as a response when the token time expires