MCPcopy
hub / github.com/go-chi/chi / NotFoundHandler

Method NotFoundHandler

mux.go:398–403  ·  view source on GitHub ↗

NotFoundHandler returns the default Mux 404 responder whenever a route cannot be found.

()

Source from the content-addressed store, hash-verified

396// NotFoundHandler returns the default Mux 404 responder whenever a route
397// cannot be found.
398func (mx *Mux) NotFoundHandler() http.HandlerFunc {
399 if mx.notFoundHandler != nil {
400 return mx.notFoundHandler
401 }
402 return http.NotFound
403}
404
405// MethodNotAllowedHandler returns the default Mux 405 responder whenever
406// a method cannot be resolved for a route.

Callers 4

ServeHTTPMethod · 0.95
routeHTTPMethod · 0.95
SupressNotFoundFunction · 0.80

Calls

no outgoing calls