# scimError

**Kind:** Function

**Source:** [`atloria-monorepo/apps/api/src/scim/scim.constants.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/api/src/scim/scim.constants.ts#L42)

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

| Name | Type |
|---|---|
| `status` | `number` |
| `detail` | `string` |
| `scimType` | `string` |

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