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

Function ScimErrorBadParams

errors/error.go:153–165  ·  view source on GitHub ↗

ScimErrorBadParams returns an 400 SCIM error with a detailed message based on the invalid parameters.

(invalidParams []string)

Source from the content-addressed store, hash-verified

151
152// ScimErrorBadParams returns an 400 SCIM error with a detailed message based on the invalid parameters.
153func ScimErrorBadParams(invalidParams []string) ScimError {
154 var suffix string
155
156 if len(invalidParams) > 1 {
157 suffix = "s"
158 }
159
160 return ScimErrorBadRequest(fmt.Sprintf(
161 "Bad Request. Invalid parameter%s provided in request: %s.",
162 suffix,
163 strings.Join(invalidParams, ", "),
164 ))
165}
166
167// ScimErrorBadRequest returns an 400 SCIM error with the given message.
168func ScimErrorBadRequest(msg string) ScimError {

Callers 1

parseRequestParamsMethod · 0.92

Calls 1

ScimErrorBadRequestFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…