MCPcopy Create free account
hub / github.com/kataras/iris / UnauthorizedJSON

Function UnauthorizedJSON

_examples/database/mongodb/httputil/error.go:128–130  ·  view source on GitHub ↗

UnauthorizedJSON sends JSON format of StatusUnauthorized(401) HTTPError value.

(ctx iris.Context, err error, format string, args ...interface{})

Source from the content-addressed store, hash-verified

126
127// UnauthorizedJSON sends JSON format of StatusUnauthorized(401) HTTPError value.
128func UnauthorizedJSON(ctx iris.Context, err error, format string, args ...interface{}) HTTPError {
129 return FailJSON(ctx, iris.StatusUnauthorized, err, format, args...)
130}

Callers

nothing calls this directly

Calls 1

FailJSONFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…