mirror of
https://github.com/minio/minio.git
synced 2025-11-24 03:27:44 -05:00
object: handle Error responses and handle errDiskFull. (#1331)
This commit is contained in:
committed by
Anand Babu (AB) Periasamy
parent
6bc17a3aea
commit
e0f8fed011
@@ -562,8 +562,8 @@ func (api objectAPIHandlers) PostPolicyBucketHandler(w http.ResponseWriter, r *h
|
||||
if err != nil {
|
||||
errorIf(err.Trace(), "PutObject failed.", nil)
|
||||
switch err.ToGoError().(type) {
|
||||
case RootPathFull:
|
||||
writeErrorResponse(w, r, ErrRootPathFull, r.URL.Path)
|
||||
case StorageFull:
|
||||
writeErrorResponse(w, r, ErrStorageFull, r.URL.Path)
|
||||
case BucketNotFound:
|
||||
writeErrorResponse(w, r, ErrNoSuchBucket, r.URL.Path)
|
||||
case BucketNameInvalid:
|
||||
|
||||
Reference in New Issue
Block a user