From d09cb18838099e8f093406fe39f83adb59813b5b Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Wed, 27 Aug 2014 21:46:24 -0700 Subject: [PATCH] Use correct error for internal failure --- src/github.com/otoolep/rqlite/server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/otoolep/rqlite/server/server.go b/src/github.com/otoolep/rqlite/server/server.go index 7d8bf0ed..33aa829a 100644 --- a/src/github.com/otoolep/rqlite/server/server.go +++ b/src/github.com/otoolep/rqlite/server/server.go @@ -292,7 +292,7 @@ func (s *Server) writeHandler(w http.ResponseWriter, req *http.Request) { b, err = json.Marshal(wr) } if err != nil { - http.Error(w, err.Error(), http.StatusBadRequest) // Internal error actually + http.Error(w, err.Error(), http.StatusInternalServerError) } else { w.Write([]byte(b)) }