From 6bc7d711b3dde99fd6aa24e07cde949d735455a5 Mon Sep 17 00:00:00 2001 From: Poorna Date: Tue, 26 Sep 2023 14:02:56 -0700 Subject: [PATCH] delete of a missing versionId return 204 (#18117) --- cmd/object-handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/object-handlers.go b/cmd/object-handlers.go index 69073e969..8c0ef2433 100644 --- a/cmd/object-handlers.go +++ b/cmd/object-handlers.go @@ -2416,7 +2416,7 @@ func (api objectAPIHandlers) DeleteObjectHandler(w http.ResponseWriter, r *http. writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } - if isErrObjectNotFound(err) { + if isErrObjectNotFound(err) || isErrVersionNotFound(err) { writeSuccessNoContent(w) return }