diff --git a/pkg/routes/static.go b/pkg/routes/static.go index 74083c2f7..3f5162829 100644 --- a/pkg/routes/static.go +++ b/pkg/routes/static.go @@ -166,8 +166,8 @@ func static() echo.MiddlewareFunc { return err } - var he *echo.HTTPError - if !errors.As(err, &he) || he.Code != http.StatusNotFound { + var he echo.HTTPStatusCoder + if !errors.As(err, &he) || he.StatusCode() != http.StatusNotFound { return err }