Skip to content
Latchkey

What Is HTTP 415 Unsupported Media Type?

HTTP 415 Unsupported Media Type explained, and what it means when you see it in CI/CD and deployments.

HTTP 415 means the server refuses the request because of its media type.

What it means

A 415 happens when the Content-Type header does not match what the endpoint expects, e.g. sending form data to a JSON-only API.

When you see it in CI/CD

CI API tests hit 415 when a script omits Content-Type: application/json on a JSON POST. Set the correct header.

Key takeaways

  • 415 means a bad Content-Type.
  • Set the header the API expects.
  • Common on JSON POSTs missing the header.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →