use appropriate HTTP status for storage is full (#6117)

This commit is contained in:
Harshavardhana 2018-07-03 09:40:14 -07:00 committed by kannappanr
parent 6c85706c24
commit 80b3e9cb03

View file

@ -692,7 +692,7 @@ var errorCodeResponse = map[APIErrorCode]APIError{
ErrStorageFull: {
Code: "XMinioStorageFull",
Description: "Storage backend has reached its minimum free disk threshold. Please delete a few objects to proceed.",
HTTPStatusCode: http.StatusInternalServerError,
HTTPStatusCode: http.StatusInsufficientStorage,
},
ErrRequestBodyParse: {
Code: "XMinioRequestBodyParse",