api request_error ai_generated true

415 Unsupported Media Type

ID: api/content-type-mismatch

Also available as: JSON · Markdown
88%Fix Rate
90%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
any active

Root Cause

Request Content-Type header doesnt match expected format.

generic

Workarounds

  1. 92% success Set correct Content-Type header: application/json for JSON APIs
  2. 90% success Check API docs for expected Content-Type per endpoint

Dead Ends

Common approaches that don't work:

  1. Remove Content-Type header entirely 78% fail

    Server uses wrong default parser

  2. Send as form-encoded when JSON expected 82% fail

    Parse error on server