Client Error · 4xx

413 Content Too Large

The request body exceeds the server's size limit.

What 413 Content Too Large means

413 Content Too Large (formerly Payload Too Large) tells the client the request body is bigger than the server is willing to accept. Common limits: 1MB for JSON APIs, 10-100MB for file uploads, multi-GB for object storage. The response should include a Retry-After header (rare but spec-allowed) and ideally a body explaining the limit. Note: the older spec name "Payload Too Large" is still used in many libraries and tools.

When servers should return it: Return 413 when the request body exceeds the configured maximum.

Common causes

How to fix 413 Content Too Large

Example response

curl -i -X POST -d @huge.json https://api.example.com/import

HTTP/2 413
content-type: application/json
{"error":"payload too large","limit_mb":1,"received_mb":15}

Related status codes

Frequently Asked Questions

Where is the 1MB limit set?
Multiple places: Nginx (client_max_body_size, default 1MB), Express (default 100KB for JSON), Cloudflare (100MB on free, more on paid), API Gateway (10MB by default).
Why is the spec name now "Content Too Large"?
RFC 9110 renamed it from "Payload Too Large" to be more accurate. Both names refer to status code 413.
Defined in: RFC 9110 · Class: 4xx Client Error

More references

For a one-page reference of all HTTP status codes, see the HTTP cheat sheet. For testing API responses, try the API Tester tool. For inspecting responses on the command line, the curl cheat sheet covers the most common flags.