MCPcopy
hub / github.com/dnote/dnote / RespondNotFound

Function RespondNotFound

pkg/server/middleware/helpers.go:48–50  ·  view source on GitHub ↗

RespondNotFound responds with not found

(w http.ResponseWriter)

Source from the content-addressed store, hash-verified

46
47// RespondNotFound responds with not found
48func RespondNotFound(w http.ResponseWriter) {
49 http.Error(w, "not found", http.StatusNotFound)
50}
51
52// RespondInvalidSMTPConfig responds with invalid SMTP config error
53func RespondInvalidSMTPConfig(w http.ResponseWriter) {

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected