def METHOD_NAME(self, url: str, params: Dict[str, Any]) -> Response:
    assert settings.PUSH_NOTIFICATION_BOUNCER_URL is not None
    registration_url = settings.PUSH_NOTIFICATION_BOUNCER_URL + url
    session = PushBouncerSession()
    try:
        response = session.post(registration_url, params=params)
    except requests.RequestException:
        raise CommandError(
            "Network error connecting to push notifications service "
            f"({settings.PUSH_NOTIFICATION_BOUNCER_URL})",
        )
    try:
        response.raise_for_status()
    except requests.HTTPError as e:
        # Report nice errors from the Zulip API if possible.
        try:
            content_dict = response.json()
        except Exception:
            raise e
        raise CommandError("Error: " + content_dict["msg"])
    return response