unsupported-media-type
A problem type of the ckrets.ai API, answered with 415. The answer is application/problem+json (RFC 9457) with type https://ckrets.ai/problems/unsupported-media-type, title, status, detail and requestId. Branch on type, never on title.
415: fix the request
A write (POST, PATCH) must be Content-Type: application/json, or have no body and no type; send JSON. Parameters (; charset=utf-8) and letter case are ignored, and any application/…+json type is taken; anything else, application/json5 included, is 415. A create with no body at all is 400 invalid-request (no value)
More
- Every type, grouped by what to do: error types.
- The retry rules and headers: limits.
- This page for agents, as Markdown: /problems/unsupported-media-type.md.