NotFoundHandler returns the default Mux 404 responder whenever a route cannot be found.
()
| 396 | // NotFoundHandler returns the default Mux 404 responder whenever a route |
| 397 | // cannot be found. |
| 398 | func (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. |
no outgoing calls