@ -879,16 +879,6 @@ var errorCodes = errorCodeMap{
Description : "Object name already exists as a directory." ,
Description : "Object name already exists as a directory." ,
HTTPStatusCode : http . StatusConflict ,
HTTPStatusCode : http . StatusConflict ,
} ,
} ,
ErrReadQuorum : {
Code : "XMinioReadQuorum" ,
Description : "Multiple disk failures, unable to reconstruct data." ,
HTTPStatusCode : http . StatusServiceUnavailable ,
} ,
ErrWriteQuorum : {
Code : "XMinioWriteQuorum" ,
Description : "Multiple disks failures, unable to write data." ,
HTTPStatusCode : http . StatusServiceUnavailable ,
} ,
ErrInvalidObjectName : {
ErrInvalidObjectName : {
Code : "XMinioInvalidObjectName" ,
Code : "XMinioInvalidObjectName" ,
Description : "Object name contains unsupported characters." ,
Description : "Object name contains unsupported characters." ,
@ -1534,7 +1524,7 @@ func toAPIErrorCode(ctx context.Context, err error) (apiErr APIErrorCode) {
apiErr = ErrKMSAuthFailure
apiErr = ErrKMSAuthFailure
case errOperationTimedOut , context . Canceled , context . DeadlineExceeded :
case errOperationTimedOut , context . Canceled , context . DeadlineExceeded :
apiErr = ErrOperationTimedOut
apiErr = ErrOperationTimedOut
case errNetworkConnReset :
case errDiskNotFound :
apiErr = ErrSlowDown
apiErr = ErrSlowDown
}
}
@ -1593,9 +1583,9 @@ func toAPIErrorCode(ctx context.Context, err error) (apiErr APIErrorCode) {
case InvalidPart :
case InvalidPart :
apiErr = ErrInvalidPart
apiErr = ErrInvalidPart
case InsufficientWriteQuorum :
case InsufficientWriteQuorum :
apiErr = ErrWriteQuorum
apiErr = ErrSlowDown
case InsufficientReadQuorum :
case InsufficientReadQuorum :
apiErr = ErrReadQuorum
apiErr = ErrSlowDown
case UnsupportedDelimiter :
case UnsupportedDelimiter :
apiErr = ErrNotImplemented
apiErr = ErrNotImplemented
case InvalidMarkerPrefixCombination :
case InvalidMarkerPrefixCombination :