# Context does not match the task

`task_context_mismatch` · HTTP 400 · Agent messages and tasks

The context id sent with a task reference is not the context that task belongs to.

## What to do

Send the context id returned with the task, or leave it out.

## Where this comes from

- Problem type: <https://layersofthesouth.org/problems/task_context_mismatch>
- All problem types: <https://layersofthesouth.org/developers/errors#task_context_mismatch>
- 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.
