MCPcopy
hub / github.com/pocketbase/pocketbase / NewForbiddenError

Function NewForbiddenError

apis/api_error_aliases.go:30–32  ·  view source on GitHub ↗

NewForbiddenError is an alias for [router.NewForbiddenError].

(message string, errData any)

Source from the content-addressed store, hash-verified

28
29// NewForbiddenError is an alias for [router.NewForbiddenError].
30func NewForbiddenError(message string, errData any) *router.ApiError {
31 return router.NewForbiddenError(message, errData)
32}
33
34// NewUnauthorizedError is an alias for [router.NewUnauthorizedError].
35func NewUnauthorizedError(message string, errData any) *router.ApiError {

Callers

nothing calls this directly

Calls 1

NewForbiddenErrorFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…