mirror of
https://github.com/minio/minio.git
synced 2025-11-22 02:35:30 -05:00
obj: Object api handle all errors in common location. (#1343)
This commit is contained in:
committed by
Harshavardhana
parent
5c33b68318
commit
91588209fa
@@ -413,6 +413,10 @@ func writeWebErrorResponse(w http.ResponseWriter, err error) {
|
||||
apiErrCode = ErrNoSuchKey
|
||||
case ObjectNameInvalid:
|
||||
apiErrCode = ErrNoSuchKey
|
||||
case StorageInsufficientWriteResources:
|
||||
apiErrCode = ErrInsufficientWriteResources
|
||||
case StorageInsufficientReadResources:
|
||||
apiErrCode = ErrInsufficientReadResources
|
||||
default:
|
||||
apiErrCode = ErrInternalError
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user