I am using Locust to send various http requests to an endpoint. The endpoint may sometimes return a 401, indicating that the locust user needs a new bearer token. Does locust provide a way to access the locust-user that is making the given call?

I would like to do be able to add seomthing like WebUser.login() if a 401 is returned from the server

```
class WebUser(HttpUser):
    tasks = {LoadTasks}
    bearer = ""
    on_start = login() //gets a bearer-token for the 'bearer' field.

class LoadTasks(TaskSet):
    endpointPath = "/domain/subdomain/endpoint"

    @task(5)
    def put(self):
        path = self.endpointpath
        response = self.client.put()

        if response.status_code == 401:
            // WebUser to call authorization endpoint and retrieve new access_token
            // i.e. locust-user.login()

```