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
fix abused 404 status code
divinerapierf1ee6b7a5470
diff --git a/weed/server/filer_server_handlers_read.go b/weed/server/filer_server_handlers_read.goindex 0edf501a8e..ba21298bad 100644--- a/weed/server/filer_server_handlers_read.go+++ b/weed/server/filer_server_handlers_read.go@@ -32,10 +32,15 @@ func (fs *FilerServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request,fs.listDirectoryHandler(w, r)return}- glog.V(1).Infof("Not found %s: %v", path, err)-- stats.FilerRequestCounter.WithLabelValues("read.notfound").Inc()- w.WriteHeader(http.StatusNotFound)+ if err == filer2.ErrNotFound {+ glog.V(1).Infof("Not found %s: %v", path, err)+ stats.FilerRequestCounter.WithLabelValues("read.notfound").Inc()+ w.WriteHeader(http.StatusNotFound)+ } else {+ glog.V(0).Infof("Internal %s: %v", path, err)+ stats.FilerRequestCounter.WithLabelValues("read.internalerror").Inc()+ w.WriteHeader(http.StatusInternalServerError)+ }return}