Want to change response code

When I am authenticating using auth:api and do something with the bearer token everything is OK. But when I expired the token then it is sending 204 no content api but I want 401 unauthorized response. So how can I do it

return response.status(401).send(‘my text’)

@jorgeyoma is right, and it seems this may be helpful to read: https://adonisjs.com/docs/4.1/response