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