def METHOD_NAME(self, endpoint: str, allowed_status_codes: list[int]) -> dict[str, Any] | None:
    if allowed_status_codes is None:
        allowed_status_codes = [200]
    if not self.token:
        return None
    url_endpoint = f"{self.api_url}/{endpoint}"
    try:
        headers = self._headers()
        if self.http:
            request = self.http.request("GET", url_endpoint, headers=headers)  # type:ignore[no-untyped-call]
            if request.status in allowed_status_codes:
                data: dict[str, Any] = json.loads(request.data.decode("utf8"))
                if isinstance(data, dict) and 'errors' in data.keys():
                    return None
                return data
    except Exception:
        logging.debug(f"Query failed to run by returning code of {url_endpoint}", exc_info=True)
    return None