WhereGoes

415 Unsupported Media Type

4xx client error

The request body uses a media type the endpoint does not support, for example sending XML to a JSON-only API or an unknown charset.

Common causes

  • The Content-Type is missing or wrong for the endpoint.
  • A form posts multipart to a JSON-only route.
  • A charset or vendor media type is unknown.

How to fix it

  • Send the correct Content-Type and matching body format.
  • Return the accepted types in the error response.
  • Accept form encoding as a fallback for browser submissions.

What it means for redirects and SEO

Wrong content type on a POST means crawlers and link checks against the endpoint fail. JSON-only APIs reject form posts. Return a helpful error that names the accepted type.

Related codes