public bool IsErrorRetryable()

in src/AlibabaCloud.OSS.V2/Retry/ErrorRetryableImpl.cs [9:22]


        public bool IsErrorRetryable(Exception error)
        {
            if (error is ServiceException exception)
            {
                var statusCode = exception.StatusCode;
                if (statusCode >= 500) return true;

                foreach (var code in _statusCodes)
                    if (statusCode == code)
                        return true;
            }

            return false;
        }