MCPcopy
hub / github.com/vouch/vouch-proxy / Error401HTTP

Function Error401HTTP

pkg/responses/responses.go:101–104  ·  view source on GitHub ↗

Error401HTTP

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

Source from the content-addressed store, hash-verified

99
100// Error401HTTP
101func Error401HTTP(w http.ResponseWriter, r *http.Request, e error) {
102 cancelClearSetError(w, r, e)
103 renderError(w, e.Error(), http.StatusUnauthorized)
104}
105
106// Error403 Forbidden
107// if there's an error during /auth or if they don't pass validation in /auth

Callers 1

CallbackHandlerFunction · 0.92

Calls 2

cancelClearSetErrorFunction · 0.85
renderErrorFunction · 0.85

Tested by

no test coverage detected