diff --git a/contrib/codecs/http/handler.go b/contrib/codecs/http/handler.go index f47bdf73e72c8afcca45369ae8bbb8006060e7b2..b5742441bd7b3a76d5da290505390f8c96d489ab 100644 --- a/contrib/codecs/http/handler.go +++ b/contrib/codecs/http/handler.go @@ -34,5 +34,6 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { if err != nil { // slog.Error("codec err", "err", err) } + http.Error(w, "Internal Error", http.StatusInternalServerError) <-c.Closed() }