RouteNotFound registers a special-case route which is executed when no other route is found (i.e. HTTP 404 cases) for current request URL. Path supports static and named/any parameters just like other http method is defined. Generally path is ended with wildcard/match-any character (`/*`, `/download
(path string, h HandlerFunc, m ...MiddlewareFunc)
| 552 | // |
| 553 | // Example: `e.RouteNotFound("/*", func(c *echo.Context) error { return c.NoContent(http.StatusNotFound) })` |
| 554 | func (e *Echo) RouteNotFound(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo { |
| 555 | return e.Add(RouteNotFound, path, h, m...) |
| 556 | } |
| 557 | |
| 558 | // Any registers a new route for all HTTP methods (supported by Echo) and path with matching handler |
| 559 | // in the router with optional route-level middleware. |