MCPcopy Index your code
hub / github.com/coder/coder / ResourceNotFound

Function ResourceNotFound

coderd/httpapi/httpapi.go:153–155  ·  view source on GitHub ↗

ResourceNotFound is intentionally vague. All 404 responses should be identical to prevent leaking existence of resources.

(rw http.ResponseWriter)

Source from the content-addressed store, hash-verified

151// ResourceNotFound is intentionally vague. All 404 responses should be identical
152// to prevent leaking existence of resources.
153func ResourceNotFound(rw http.ResponseWriter) {
154 Write(context.Background(), rw, http.StatusNotFound, ResourceNotFoundResponse)
155}
156
157var ResourceForbiddenResponse = codersdk.Response{
158 Message: "Forbidden.",

Callers 15

getUserSecretMethod · 0.92
patchUserSecretMethod · 0.92
deleteUserSecretMethod · 0.92
provisionerDaemonsMethod · 0.92
listUserExternalAuthsMethod · 0.92
fileByIDMethod · 0.92
putUserProfileMethod · 0.92
putUserPasswordMethod · 0.92
userRolesMethod · 0.92

Calls 1

WriteFunction · 0.85

Tested by 2

TestTaskCreateFunction · 0.74
Test_TaskStatusFunction · 0.74