def head(self, *args):
        # only the key with can_create_user or key associated to a username
        # can fetch the user details
        if not self.api_key.can_create_user() and self.key_username != args[0]:
            raise HTTPError(404)

        if not self.auth_mgr.has_user(args[0]):
            self.set_status(404)
        else:
            self.set_status(200)
dataset/ETHPy150Open benoitc/gaffer/gaffer/gafferd/http_handlers/user.py/UserHandler.head/original