---
title: "document_too_large: what it means and how to fix it · Hypamoon"
description: "HTTP 422. A document can be at most 64 kB as JSON (UTF-8). Store large text or files elsewhere and keep a link in the document."
url: https://hypamoon.com/docs/errors/document_too_large
---

**Start for free.** [Sign up](https://app.hypamoon.com/?mode=signup&utm_source=docs&utm_campaign=banner) without a card and connect your chat, or create a test key for the API. Going live with something real asks for a quick check of your company first.

[Errors](https://hypamoon.com/docs/errors)

# document\_too\_large

**Status**\
422

**Type**\
`https://hypamoon.com/docs/errors/document_too_large`

A document can be at most 64 kB as JSON (UTF-8). Store large text or files elsewhere and keep a link in the document. From a form, this usually means a field was filled with far more text than a person types; limit it with `maxLength` in the collection's schema or on the input.

Hypamoon is the infrastructure your chat or agent builds on for a business. Hypamoon API, version 1.[hypamoon.com](https://hypamoon.com/)
