MCPcopy Create free account
hub / github.com/daodst/chat / Forbidden

Function Forbidden

clientapi/jsonerror/jsonerror.go:52–54  ·  view source on GitHub ↗

Forbidden is an error when the client tries to access a resource they are not allowed to access.

(msg string)

Source from the content-addressed store, hash-verified

50// Forbidden is an error when the client tries to access a resource
51// they are not allowed to access.
52func Forbidden(msg string) *MatrixError {
53 return &MatrixError{"M_FORBIDDEN", msg}
54}
55
56// BadJSON is an error when the client supplies malformed JSON.
57func BadJSON(msg string) *MatrixError {

Callers 1

TestForbiddenFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestForbiddenFunction · 0.68