Errors
The request needs a Content-Length
The `length_required` error: HTTP 411 Length Required.
Send a Content-Length header for the MCP request body, using the number of encoded bytes. The server refuses an unbounded body before reading it.
| Field | Value |
|---|---|
code | length_required |
status | 411 Length Required |
title | The request needs a Content-Length |
The API answers every error with a problem document (RFC 9457, application/problem+json). Its type is the address of this page, and its code is length_required. Branch on code, never on title or detail: a code never changes once it ships, while the words may.
{
"type": "…/errors/length_required",
"title": "The request needs a Content-Length",
"status": 411,
"code": "length_required",
"requestId": "4bf92f3577b34da6a3ce929d0e0e4736"
}requestId is the request's ID, the same as its Request-Id header: send it with any question to support.