diff --git a/_examples/golang-basics/example.gen.go b/_examples/golang-basics/example.gen.go index a2f25c2..2522bd1 100644 --- a/_examples/golang-basics/example.gen.go +++ b/_examples/golang-basics/example.gen.go @@ -370,14 +370,14 @@ func (s *exampleServiceServer) ServeHTTP(w http.ResponseWriter, r *http.Request) case "/rpc/ExampleService/LogEvent": handler = s.serveLogEventJSON default: - err := ErrWebrpcBadRoute.WithCausef("no WebRPC method defined for path %v", r.URL.Path) + err := ErrWebrpcBadRoute.WithCausef("no webrpc method defined for path %v", r.URL.Path) s.sendErrorJSON(w, r, err) return } if r.Method != "POST" { w.Header().Add("Allow", "POST") // RFC 9110. - err := ErrWebrpcBadMethod.WithCausef("unsupported method %v (only POST is allowed)", r.Method) + err := ErrWebrpcBadMethod.WithCausef("unsupported HTTP method %v (only POST is allowed)", r.Method) s.sendErrorJSON(w, r, err) return } diff --git a/_examples/golang-imports/api.gen.go b/_examples/golang-imports/api.gen.go index 3a7158f..119edd7 100644 --- a/_examples/golang-imports/api.gen.go +++ b/_examples/golang-imports/api.gen.go @@ -247,14 +247,14 @@ func (s *exampleAPIServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { case "/rpc/ExampleAPI/GetUsers": handler = s.serveGetUsersJSON default: - err := ErrWebrpcBadRoute.WithCausef("no WebRPC method defined for path %v", r.URL.Path) + err := ErrWebrpcBadRoute.WithCausef("no webrpc method defined for path %v", r.URL.Path) s.sendErrorJSON(w, r, err) return } if r.Method != "POST" { w.Header().Add("Allow", "POST") // RFC 9110. - err := ErrWebrpcBadMethod.WithCausef("unsupported method %v (only POST is allowed)", r.Method) + err := ErrWebrpcBadMethod.WithCausef("unsupported HTTP method %v (only POST is allowed)", r.Method) s.sendErrorJSON(w, r, err) return } diff --git a/server.go.tmpl b/server.go.tmpl index b2742d4..3a85f86 100644 --- a/server.go.tmpl +++ b/server.go.tmpl @@ -54,14 +54,14 @@ func (s *{{$serviceName}}) ServeHTTP(w http.ResponseWriter, r *http.Request) { handler = s.serve{{$method.Name | firstLetterToUpper}}JSON{{if $method.StreamOutput}}Stream{{end}} {{- end}} default: - err := ErrWebrpcBadRoute.WithCausef("no WebRPC method defined for path %v", r.URL.Path) + err := ErrWebrpcBadRoute.WithCausef("no webrpc method defined for path %v", r.URL.Path) s.sendErrorJSON(w, r, err) return } if r.Method != "POST" { w.Header().Add("Allow", "POST") // RFC 9110. - err := ErrWebrpcBadMethod.WithCausef("unsupported method %v (only POST is allowed)", r.Method) + err := ErrWebrpcBadMethod.WithCausef("unsupported HTTP method %v (only POST is allowed)", r.Method) s.sendErrorJSON(w, r, err) return }