# length_required Error (HTTP 411) | API Reference

URL: https://email-validation.org/docs/errors/length-required/
Updated: 2026-11-25

> Documentation index: https://email-validation.org/llms.txt

**HTTP 411** · no credit is used for a request that ends in an error.

A bulk upload was sent without a `Content-Length` header (for example as a chunked stream).

## What to do

Send the file with a known length. Most HTTP clients do this when you pass the whole file.

## Retry

No: fix the request. When and how often to retry any error: [retrying safely](https://email-validation.org/docs/errors/#retries).

## The answer

```json
{
  "error": {
    "code": "length_required",
    "message": "Send a Content-Length header with the request body.",
    "request_id": "req_7Hq2LmX9cV4bN8tR1zK6wD"
  }
}
```

Branch on `code`, which is stable; `message` is for people and may change. Keep `request_id` in your logs.

Headers that come with it:

- `X-Request-Id`: Our ID for the request (same as `request_id` in bodies).

## Endpoints that can answer it

- [`POST /v1/bulk`](https://email-validation.org/docs/api-reference/create-bulk-job/) (`411`)

## More

- [Every error code](https://email-validation.org/docs/errors/#codes)
- [Retrying safely](https://email-validation.org/docs/errors/#retries)
