From 04abd753efc5a4310fdf3b2af7108a6793d53597 Mon Sep 17 00:00:00 2001 From: Yoshida Hiroshi Date: Thu, 25 Jan 2024 16:43:25 +0900 Subject: [PATCH] =?UTF-8?q?=E7=B5=82=E4=BA=86=E6=99=82=E3=81=AE=E3=83=A1?= =?UTF-8?q?=E3=83=83=E3=82=BB=E3=83=BC=E3=82=B8=E3=82=92=E3=82=B9=E3=83=88?= =?UTF-8?q?=E3=83=AA=E3=83=BC=E3=83=A0=E3=81=AB=E9=80=81=E3=82=89=E3=81=AA?= =?UTF-8?q?=E3=81=84=E3=82=88=E3=81=86=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler.go b/handler.go index cd53e92..5e7b8ba 100644 --- a/handler.go +++ b/handler.go @@ -144,7 +144,7 @@ func (s *Server) createSpeechHandler(serviceType string, onResultFunc func(conte Send() if err, ok := err.(*SuzuError); ok { // SuzuError の場合はその Status Code を返す - return echo.NewHTTPError(err.Code, err) + return c.NoContent(err.Code) } // SuzuError 以外の場合は 500 を返す