def METHOD_NAME(cls, v, values):
    if v and not (
        values
        and (boot_mode := values.get("SC_BOOT_MODE"))
        and boot_mode.is_devel_mode()
    ):
        msg = "API_SERVER_DEV_HTTP_CALLS_LOGS_PATH only allowed in devel mode"
        raise ValueError(msg)
    return v