When the token provided by a user or client is no longer valid, perhaps due to expiration or tampering, the system needs to respond appropriately. To handle this scenario, the server typically returns an HTTP status code 401, which indicates that the request lacks proper authentication, or the provided token is invalid.