mirror of
https://github.com/minio/minio.git
synced 2025-04-26 04:52:25 -04:00
Added AllAccessDisabled error
This commit is contained in:
parent
dd5b975001
commit
4be609eb82
@ -663,6 +663,8 @@ func toAPIErrorCode(err error) (apiErr APIErrorCode) {
|
|||||||
apiErr = ErrStorageFull
|
apiErr = ErrStorageFull
|
||||||
case BadDigest:
|
case BadDigest:
|
||||||
apiErr = ErrBadDigest
|
apiErr = ErrBadDigest
|
||||||
|
case AllAccessDisabled:
|
||||||
|
apiErr = ErrAllAccessDisabled
|
||||||
case IncompleteBody:
|
case IncompleteBody:
|
||||||
apiErr = ErrIncompleteBody
|
apiErr = ErrIncompleteBody
|
||||||
case ObjectExistsAsDirectory:
|
case ObjectExistsAsDirectory:
|
||||||
|
@ -250,6 +250,14 @@ func (e ObjectNameInvalid) Error() string {
|
|||||||
return "Object name invalid: " + e.Bucket + "#" + e.Object
|
return "Object name invalid: " + e.Bucket + "#" + e.Object
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AllAccessDisabled All access to this object has been disabled
|
||||||
|
type AllAccessDisabled GenericError
|
||||||
|
|
||||||
|
// Return string an error formatted as the given text.
|
||||||
|
func (e AllAccessDisabled) Error() string {
|
||||||
|
return "All access to this object has been disabled"
|
||||||
|
}
|
||||||
|
|
||||||
// IncompleteBody You did not provide the number of bytes specified by the Content-Length HTTP header.
|
// IncompleteBody You did not provide the number of bytes specified by the Content-Length HTTP header.
|
||||||
type IncompleteBody GenericError
|
type IncompleteBody GenericError
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user