# Unsupported media type

`unsupported_media_type` · HTTP 415 · Methods and media types

The request body is not declared as application/json.

## What to do

Send the body with Content-Type: application/json.

## Where this comes from

- Problem type: <https://layersofthesouth.org/problems/unsupported_media_type>
- All problem types: <https://layersofthesouth.org/developers/errors#unsupported_media_type>
- Operations and their responses: <https://layersofthesouth.org/api/v1/openapi.json>
- API catalogue: <https://layersofthesouth.org/.well-known/api-catalog>

Every error from the HTTP API is an `application/problem+json` document (RFC 9457) whose `code` is the identifier above. The tool endpoint (MCP) carries the same identifier in `error.data.code`, and a tool result with `isError: true` carries it in `result._meta["org.layersofthesouth/problem"].code`, beside `type`, `status` and `field`; the agent endpoint (A2A) carries it in `error.data[0].code`, in an object whose `@type` is the problem type URL.
