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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
filer: return not found 404 status if not found
Chris Lu36ddca9d1f11
diff --git a/weed/server/filer_server_handlers_write.go b/weed/server/filer_server_handlers_write.goindex fb6855a99f..236e7027dc 100644--- a/weed/server/filer_server_handlers_write.go+++ b/weed/server/filer_server_handlers_write.go@@ -290,7 +290,11 @@ func (fs *FilerServer) DeleteHandler(w http.ResponseWriter, r *http.Request) {err := fs.filer.DeleteEntryMetaAndData(context.Background(), filer2.FullPath(r.URL.Path), isRecursive, ignoreRecursiveError, !skipChunkDeletion)if err != nil {glog.V(1).Infoln("deleting", r.URL.Path, ":", err.Error())- writeJsonError(w, r, http.StatusInternalServerError, err)+ httpStatus := http.StatusInternalServerError+ if err == filer2.ErrNotFound {+ httpStatus = http.StatusNotFound+ }+ writeJsonError(w, r, httpStatus, err)return}