api
request_error
ai_generated
true
415 Unsupported Media Type
ID: api/content-type-mismatch
88%Fix Rate
90%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| any | active | — | — | — |
Root Cause
Request Content-Type header doesnt match expected format.
genericWorkarounds
-
92% success Set correct Content-Type header: application/json for JSON APIs
-
90% success Check API docs for expected Content-Type per endpoint
Dead Ends
Common approaches that don't work:
-
Remove Content-Type header entirely
78% fail
Server uses wrong default parser
-
Send as form-encoded when JSON expected
82% fail
Parse error on server