public static function validate($value)
    {
        assert(is_string($value));

        if ($value !== self::LAST && $value !== self::ERROR) {
            throw new ClientException('Invalid update policy');
        }
    }