length_required
A request with a body arrived using chunked transfer encoding, without declaring its size. The API needs the length up front to reject oversized payloads before buffering them.
| Code | Type | HTTP | Category |
|---|---|---|---|
length_required | invalid_request_error | 411 | Request |
Cause
A request with a body arrived using chunked transfer encoding, without declaring its size. The API needs the length up front to reject oversized payloads before buffering them.
What to do
Send the body with a Content-Length header instead of Transfer-Encoding: chunked.
Related
All Request error codes
Causes and actions for errors in this category.
Error codes by category
Find an error by the category that emits it.
Full reference table
All codes, HTTP statuses, types and descriptions in one reference.
Error model
Interpret the error envelope and handle errors by code.