Skip to content

scimError

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/scim/scim.constants.ts

Build a SCIM error response body (RFC 7644 §3.12). status is a STRING per the spec. scimType narrows client behavior (e.g. 'uniqueness' on a 409).

Signature

ts
function scimError(status: number, detail: string, scimType: string): { schemas: string[]; detail: string; status: string; scimType?: string }

Parameters

NameType
statusnumber
detailstring
scimTypestring

Returns: { schemas: string[]; detail: string; status: string; scimType?: string }

Was this page helpful?

Download as PDF