mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 06:00:24 +03:00
use appropriate HTTP status for storage is full (#6117)
This commit is contained in:
committed by
kannappanr
parent
6c85706c24
commit
80b3e9cb03
+1
-1
@@ -692,7 +692,7 @@ var errorCodeResponse = map[APIErrorCode]APIError{
|
|||||||
ErrStorageFull: {
|
ErrStorageFull: {
|
||||||
Code: "XMinioStorageFull",
|
Code: "XMinioStorageFull",
|
||||||
Description: "Storage backend has reached its minimum free disk threshold. Please delete a few objects to proceed.",
|
Description: "Storage backend has reached its minimum free disk threshold. Please delete a few objects to proceed.",
|
||||||
HTTPStatusCode: http.StatusInternalServerError,
|
HTTPStatusCode: http.StatusInsufficientStorage,
|
||||||
},
|
},
|
||||||
ErrRequestBodyParse: {
|
ErrRequestBodyParse: {
|
||||||
Code: "XMinioRequestBodyParse",
|
Code: "XMinioRequestBodyParse",
|
||||||
|
|||||||
Reference in New Issue
Block a user