# Custom domain state conflict

The KeenAuth APIs return this problem type with HTTP status 409 (Conflict).

## Problem type

| Field | Value |
|---|---|
| Type URI | `https://docs.keenauth.com/errors/custom_domain_state_conflict` |
| Code | `custom_domain_state_conflict` |
| HTTP status | 409 Conflict |
| Title | Custom domain state conflict |

## Meaning

The operation is not possible in the custom domain's current state (for example, a domain that is not `active` cannot be made primary).

## Example response

Example response body. `detail` is a human-readable English description that is not meant for end users; `instance` identifies the request.

```json
{
  "type": "https://docs.keenauth.com/errors/custom_domain_state_conflict",
  "title": "Custom domain state conflict",
  "status": 409,
  "code": "custom_domain_state_conflict",
  "detail": "...",
  "instance": "urn:idp:request:<request_id>"
}
```

All error codes: [Error reference](/docs/errors).
