# payload_too_large

> The request body or file is too big: JSON bodies are at most 64 KiB, and a direct upload at most 25 MiB.

HTTP `413` · `retryable` is `false`

A JSON body is at most 64 KiB. `POST /v2/media` takes a file up to 25 MiB, and a presigned upload refuses more bytes
than it declared.

**What to do:** send long text as a file, and files over 25 MiB with `POST /v2/media/uploads`, which takes up to 2
GiB. `kabu send --file` picks the right way for you.

## The response

Every error comes as `application/problem+json`; [Errors](/docs/errors) explains each field.

```json
{
  "type": "https://usekabu.com/docs/errors/payload_too_large",
  "title": "Payload too large",
  "status": 413,
  "code": "payload_too_large",
  "detail": "…",
  "hint": "…",
  "retryable": false,
  "request_id": "req_…",
  "doc_url": "https://usekabu.com/docs/errors/payload_too_large"
}
```
