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

Method NotFound

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

NotFound 资源不存在

()

Source from the content-addressed store, hash-verified

68
69// NotFound 资源不存在
70func (e *APIError) NotFound() *APIError {
71 return e.dup().appendCode(http.StatusNotFound, "NotFound").
72 appendLocaleTemplate(templateNotFound)
73}
74
75// Error prompts who has permission for the request
76func (e *APIError) AppendAuthorizedRoles(roles []string) *APIError {

Callers

nothing calls this directly

Calls 3

dupMethod · 0.95
appendLocaleTemplateMethod · 0.80
appendCodeMethod · 0.80

Tested by

no test coverage detected