def METHOD_NAME(self, update_only=False):
    """Check our config dict for errors."""
    blocked_message = "Error in ingress relation, check `juju debug-log`"
    unknown = [
        x
        for x in self.config_dict
        if x not in REQUIRED_INGRESS_RELATION_FIELDS | OPTIONAL_INGRESS_RELATION_FIELDS
    ]
    if unknown:
        logger.error(
            "Ingress relation error, unknown key(s) in config dictionary found: %s",
            ", ".join(unknown),
        )
        self.model.unit.status = BlockedStatus(blocked_message)
        return True
    if not update_only:
        missing = [x for x in REQUIRED_INGRESS_RELATION_FIELDS if x not in self.config_dict]
        if missing:
            logger.error(
                "Ingress relation error, missing required key(s) in config dictionary: %s",
                ", ".join(sorted(missing)),
            )
            self.model.unit.status = BlockedStatus(blocked_message)
            return True
    return False