HTTP Error Code 413
The request body is larger than the server is willing to accept.
The request body is larger than the server is willing to accept.
| Code | 413 |
| Product | HTTP |
| Company / origin | IETF / IANA · International standard |
| Category | Protocols & Standards |
| Platform / versions | HTTP/1.1, HTTP/2, HTTP/3 · All HTTP versions |
| Severity | warning |
| Official source | RFC 9110: HTTP Semantics ↗ |
| Last verified | 2026-11-08 |
What does HTTP error 413 mean?
HTTP 413 means the server rejected the request because the body exceeds a configured limit. The limit may be enforced by the application, Nginx, a load balancer, or an API gateway. RFC 9110 uses the name Content Too Large; older documentation often says Payload Too Large.
Common causes
- Uploading a file or JSON body above the server's client_max_body_size or API limit.
- Sending a large batch in one request instead of paginating or chunking.
- A proxy has a smaller body limit than the application.
How to fix it
- Step 1
Check every limit in the chain: application, API gateway, reverse proxy, and CDN.
- Step 2
Compress the payload, split it into batches, or upload large files in chunks.
- Step 3
Raise the limit only after confirming the server has enough memory and disk to handle the larger body.
When to escalate
Related codes
| Code | Name | What it means |
|---|---|---|
400 | Bad Request | The server cannot process the request because the syntax or parameters are invalid. |
401 | Unauthorized | Authentication is missing, expired, or invalid. |
403 | Forbidden | The server understood the request but refuses to authorize it. |
404 | Not Found | The requested resource does not exist at this URL. |
405 | Method Not Allowed | The HTTP method is not allowed for this resource. |
Source & verification
This page was checked against RFC 9110: HTTP Semantics on 2026-11-08. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.
Open Error Codes is independent and not affiliated with IETF / IANA. Always confirm destructive or security-sensitive steps with the official documentation.