Error Reference
not-acceptable
| 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
Code
Common Causes
- Setting
Accept: application/xmlwhen only JSON is supported - Setting
Accept: text/plainor another unsupported media type - Using a restrictive
Acceptheader that excludesapplication/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:
Code
Last modified on