MCPcopy Index your code
hub / github.com/erda-project/erda / AccessDenied

Method AccessDenied

pkg/http/httpserver/errorresp/error_codes.go:64–67  ·  view source on GitHub ↗

AccessDenied 无权限

()

Source from the content-addressed store, hash-verified

62
63// AccessDenied 无权限
64func (e *APIError) AccessDenied() *APIError {
65 return e.dup().appendCode(http.StatusForbidden, "AccessDenied").
66 appendLocaleTemplate(templateAccessDenied)
67}
68
69// NotFound 资源不存在
70func (e *APIError) NotFound() *APIError {

Callers

nothing calls this directly

Calls 3

dupMethod · 0.95
appendLocaleTemplateMethod · 0.80
appendCodeMethod · 0.80

Tested by

no test coverage detected