MCPcopy Create free account
hub / github.com/astercloud/aster / Unauthorized

Function Unauthorized

pkg/server/response.go:106–108  ·  view source on GitHub ↗

Unauthorized 辅助函数:401 Unauthorized

(w http.ResponseWriter, message string)

Source from the content-addressed store, hash-verified

104
105// Unauthorized 辅助函数:401 Unauthorized
106func Unauthorized(w http.ResponseWriter, message string) {
107 Error(w, http.StatusUnauthorized, "unauthorized", message)
108}
109
110// Forbidden 辅助函数:403 Forbidden
111func Forbidden(w http.ResponseWriter, message string) {

Callers

nothing calls this directly

Calls 1

ErrorFunction · 0.70

Tested by

no test coverage detected