HTTP 415 Unsupported Media Type (Missing Content-Type Header)

Server rejected JSON/form payload because `Content-Type` was missing or `text/plain`.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: HTTP 415 Unsupported Media Type (Missing Content-Type Header) Platform: HTTP
Common Root Causes:
  • Server rejected JSON/form payload because `Content-Type` was missing or `text/plain`.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Send explicit `Content-Type: application/json` matching what the endpoint parses.
Safe Diagnostic Command:
curl -v -X POST -H "Content-Type: application/json" ...
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

Server rejected JSON/form payload because `Content-Type` was missing or `text/plain`. Recommended diagnostic: `curl -v -X POST -H "Content-Type: application/json" ...`. Remediation: Send explicit `Content-Type: application/json` matching what the endpoint parses.

Worked Examples

  • Run `curl -v -X POST -H "Content-Type: application/json" ...` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-http-415-unsupported-media-type · Independently verified: 2026-11-25

Related Resources