From b789daaf9931c2ecb71bdc75b7542d34da0951c6 Mon Sep 17 00:00:00 2001 From: Fran Bull Date: Thu, 27 Feb 2025 08:01:23 -0800 Subject: [PATCH] badrequest -> methodnotallowed --- tsconsensus/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconsensus/http.go b/tsconsensus/http.go index ec7dd7cc1..9a871c093 100644 --- a/tsconsensus/http.go +++ b/tsconsensus/http.go @@ -114,7 +114,7 @@ func (c *Consensus) makeCommandMux() *http.ServeMux { mux := http.NewServeMux() mux.HandleFunc("/join", func(w http.ResponseWriter, r *http.Request) { if r.Method != httpm.POST { - http.Error(w, "Bad Request", http.StatusBadRequest) + http.Error(w, "Method must be POST", http.StatusMethodNotAllowed) return } defer r.Body.Close()