Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ var (

// NotFoundHandler is the handler that router uses in case there was no matching route found. Returns an error that results
// HTTP 404 status code.
//
// Note: Group-level middleware registers catch-all routes using NotFoundHandler to ensure the middleware chain executes.
// If you want a custom 404 for those groups, override NotFoundHandler or register a group RouteNotFound handler.
var NotFoundHandler = func(c Context) error {
return ErrNotFound
}
Expand Down