NotFound is the handler for routes that could not be found.
(w http.ResponseWriter, r *http.Request)
| 33 | |
| 34 | // NotFound is the handler for routes that could not be found. |
| 35 | func NotFound(w http.ResponseWriter, r *http.Request) { |
| 36 | Error(w, r, errRouteNotFound.WithAttributes("route", r.URL.Path)) |
| 37 | } |
| 38 | |
| 39 | type errorContextType struct{} |
| 40 |