Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

keep 204 response

Rinat Shigapov283b749ff1af
diff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.go
index 7c6eaeb70e..87c3ce7057 100644
--- a/weed/s3api/s3api_object_handlers.go
+++ b/weed/s3api/s3api_object_handlers.go
@@ -112,11 +112,7 @@ func (s3a *S3ApiServer) DeleteObjectHandler(w http.ResponseWriter, r *http.Reque
for k, v := range proxyResponse.Header {
w.Header()[k] = v
}
- if proxyResponse.StatusCode == http.StatusNotFound {
- writeErrorResponse(w, ErrNoSuchKey, r.URL)
- return
- }
- w.WriteHeader(proxyResponse.StatusCode)
+ w.WriteHeader(http.StatusNoContent)
})
}