change error status

This commit is contained in:
2025-12-17 14:15:24 +02:00
parent e78fd22f51
commit 4be8faaa67

View File

@@ -40,7 +40,7 @@ func Route(config *config.Config) func(chi.Router) {
func (h *blockHandler) handleBlock(w http.ResponseWriter, r *http.Request) { func (h *blockHandler) handleBlock(w http.ResponseWriter, r *http.Request) {
if !h.cfg.Server.BlockConfig.Enabled { if !h.cfg.Server.BlockConfig.Enabled {
http.Error(w, "Block serving is disabled", http.StatusNotImplemented) http.Error(w, "Block serving is disabled", http.StatusForbidden)
return return
} }