MCPcopy
hub / github.com/harness/harness / Unauthorized

Function Unauthorized

errors/status.go:161–163  ·  view source on GitHub ↗

Unauthorized is a helper function to return an unauthorized error.

(format string, args ...interface{})

Source from the content-addressed store, hash-verified

159
160// Unauthorized is a helper function to return an unauthorized error.
161func Unauthorized(format string, args ...interface{}) *Error {
162 return Format(StatusUnauthorized, format, args...)
163}
164
165// Forbidden is a helper function to return a forbidden error.
166func Forbidden(format string, args ...interface{}) *Error {

Callers

nothing calls this directly

Calls 1

FormatFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…