MCPcopy Create free account
hub / github.com/elimity-com/scim / ScimErrorResourceNotFound

Function ScimErrorResourceNotFound

errors/error.go:176–181  ·  view source on GitHub ↗

ScimErrorResourceNotFound returns an 404 SCIM error with a detailed message based on the id.

(id string)

Source from the content-addressed store, hash-verified

174
175// ScimErrorResourceNotFound returns an 404 SCIM error with a detailed message based on the id.
176func ScimErrorResourceNotFound(id string) ScimError {
177 return ScimError{
178 Detail: fmt.Sprintf("Resource %s not found.", id),
179 Status: http.StatusNotFound,
180 }
181}
182
183func (e ScimError) Error() string {
184 errorMessage := fmt.Sprint(e.Status)

Callers 10

DeleteMethod · 0.92
GetMethod · 0.92
ReplaceMethod · 0.92
DeleteMethod · 0.92
GetMethod · 0.92
PatchMethod · 0.92
ReplaceMethod · 0.92
resourceTypeHandlerMethod · 0.92
schemaHandlerMethod · 0.92
GetMethod · 0.92

Calls

no outgoing calls

Tested by 8

DeleteMethod · 0.74
GetMethod · 0.74
ReplaceMethod · 0.74
DeleteMethod · 0.74
GetMethod · 0.74
PatchMethod · 0.74
ReplaceMethod · 0.74
GetMethod · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…