# not-acceptable

<Badge variant="warning">406 Not Acceptable</Badge> <Badge variant="muted">not-acceptable</Badge>

| Field | Value |
|---|---|
| **Type URI** | `https://docs.kordiam.app/docs/errors/not-acceptable` |
| **HTTP Status** | `406 Not Acceptable` |

## Description

The server cannot produce a response matching the media types specified in the request's `Accept` header. The API only supports JSON responses, so requesting other formats (such as XML or plain text) will result in this error.

## Response Example

```json
{
  "type": "https://docs.kordiam.app/docs/errors/not-acceptable",
  "title": "Not Acceptable",
  "status": 406,
  "detail": "The requested media type is not acceptable",
  "instance": "/api/v2/elements",
  "traceId": "abc-123-def",
  "supportedMediaTypes": ["application/json"]
}
```

## Common Causes

- Setting `Accept: application/xml` when only JSON is supported
- Setting `Accept: text/plain` or another unsupported media type
- Using a restrictive `Accept` header that excludes `application/json`

## How to Fix

Set the `Accept` header to `application/json`, or omit it entirely to let the server respond with its default format. For example:

```
Accept: application/json
```
