MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / NotFound

Function NotFound

pkg/webhandlers/error.go:35–37  ·  view source on GitHub ↗

NotFound is the handler for routes that could not be found.

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

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

Callers 2

TestLogFunction · 0.92

Calls 2

ErrorFunction · 0.70
WithAttributesMethod · 0.45

Tested by 2

TestLogFunction · 0.74