unsupported_media_type
Docs version v1 (main)Nauthera is pre-1.0, in a design-partner program
The request body is not of a media type the operation reads (415).
Meaning
Written before the handler runs and before the body is read: an operation that
reads a JSON body was sent one whose Content-Type is not application/json
(a form, plain text, or no Content-Type at all). detail names the media type
it reads. Form endpoints (token, PAR, introspection, revocation) answer a body
of another type with their own OAuth error instead, and the hosted-UI endpoints
refuse one as a cross-site request.
Impact
The request did nothing. It is a bug in the client; the dashboard, the hosted UI and a conforming client always send the declared media type.
Diagnosis
- Read
detailand compare it with the request'sContent-Type. - The refusal is recorded as
http.request.screenedwith reasoninvalid_requestand causemedia_type_unsupported, under the request id.
Mitigation
- As a client developer: send the body as
application/jsonwith thatContent-Type.curl -dsends a form; add-H 'Content-Type:. Do not retry unchanged.application/ json'
Escalation
Escalate when a request sent with Content-Type: is refused.
Open an issue with the request id, the endpoint, the request's headers with
secrets removed, and the server version.
Problem code runbooks · Generated from internal/ in nauthera-server.