MCPcopy
hub / github.com/harness/harness / NotFound

Function NotFound

app/api/render/render_error.go:32–34  ·  view source on GitHub ↗

NotFound writes the json-encoded message for a not found error.

(ctx context.Context, w http.ResponseWriter)

Source from the content-addressed store, hash-verified

30
31// NotFound writes the json-encoded message for a not found error.
32func NotFound(ctx context.Context, w http.ResponseWriter) {
33 UserError(ctx, w, usererror.ErrNotFound)
34}
35
36// Unauthorized writes the json-encoded message for an unauthorized error.
37func Unauthorized(ctx context.Context, w http.ResponseWriter) {

Callers 3

PackageMetadataMethod · 0.92
MiddlewareFunction · 0.92
TestWriteNotFoundFunction · 0.70

Calls 1

UserErrorFunction · 0.85

Tested by 1

TestWriteNotFoundFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…