def METHOD_NAME(self):
    try:
        response = requests.request(method="POST", url=self.get_token_refresh_endpoint(), data=self.build_refresh_request_body())
        self._log_response(response)
        response.raise_for_status()
        return response.json()
    except requests.exceptions.RequestException as e:
        if e.response.status_code == 429 or e.response.status_code >= 500:
            raise DefaultBackoffException(request=e.response.request, response=e.response)
        raise
    except Exception as e:
        raise Exception(f"Error while refreshing access token: {e}") from e