diff --git a/pkg/generated/restapi/configure_timestamp_server.go b/pkg/generated/restapi/configure_timestamp_server.go index da6474520..197dfc161 100644 --- a/pkg/generated/restapi/configure_timestamp_server.go +++ b/pkg/generated/restapi/configure_timestamp_server.go @@ -110,7 +110,7 @@ func httpPingOnly(endpoint string) func(http.Handler) http.Handler { fn := func(w http.ResponseWriter, r *http.Request) { if r.URL.Scheme != "https" && !strings.EqualFold(r.URL.Path, endpoint) { w.Header().Set("Content-Type", "text/plain") - w.WriteHeader(http.StatusForbidden) + w.WriteHeader(http.StatusNotFound) w.Write([]byte("http server supports only the /ping entrypoint")) //nolint:errcheck return }