From 80b3e9cb03c139d7a61a4c4870b6dd198a87f2e3 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 3 Jul 2018 09:40:14 -0700 Subject: [PATCH] use appropriate HTTP status for storage is full (#6117) --- cmd/api-errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/api-errors.go b/cmd/api-errors.go index 6c4f1c988..fb74fefd0 100644 --- a/cmd/api-errors.go +++ b/cmd/api-errors.go @@ -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",