MCPcopy
hub / github.com/harness/harness / Forbidden

Function Forbidden

app/api/usererror/usererror.go:169–171  ·  view source on GitHub ↗

Forbidden returns a new user facing forbidden error.

(message string)

Source from the content-addressed store, hash-verified

167
168// Forbidden returns a new user facing forbidden error.
169func Forbidden(message string) *Error {
170 return New(http.StatusForbidden, message)
171}
172
173// NotFound returns a new user facing not found error.
174func NotFound(message string) *Error {

Callers 2

RegisterMethod · 0.92
TranslateFunction · 0.70

Calls 1

NewFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…