diff --git a/http.go b/http.go index 5a9d88b..062ab76 100644 --- a/http.go +++ b/http.go @@ -207,7 +207,7 @@ func (p *HTTPPool) ServeHTTP(w http.ResponseWriter, r *http.Request) { var out pb.SetRequest err = proto.Unmarshal(b.Bytes(), &out) if err != nil { - http.Error(w, err.Error(), http.StatusInternalServerError) + http.Error(w, err.Error(), http.StatusBadRequest) return }