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

Function Forbidden

pkg/server/response.go:111–113  ·  view source on GitHub ↗

Forbidden 辅助函数:403 Forbidden

(w http.ResponseWriter, message string)

Source from the content-addressed store, hash-verified

109
110// Forbidden 辅助函数:403 Forbidden
111func Forbidden(w http.ResponseWriter, message string) {
112 Error(w, http.StatusForbidden, "forbidden", message)
113}
114
115// Conflict 辅助函数:409 Conflict
116func Conflict(w http.ResponseWriter, message string) {

Callers

nothing calls this directly

Calls 1

ErrorFunction · 0.70

Tested by

no test coverage detected