MCPcopy
hub / github.com/dnote/dnote / RespondForbidden

Function RespondForbidden

pkg/server/middleware/helpers.go:36–38  ·  view source on GitHub ↗

RespondForbidden responds with forbidden

(w http.ResponseWriter)

Source from the content-addressed store, hash-verified

34
35// RespondForbidden responds with forbidden
36func RespondForbidden(w http.ResponseWriter) {
37 http.Error(w, "forbidden", http.StatusForbidden)
38}
39
40// RespondUnauthorized responds with unauthorized
41func RespondUnauthorized(w http.ResponseWriter) {

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected