What does HTTP status code 413 mean?
The 413 Content Too Large status code indicates that the request body is larger than the server is configured or willing to process. RFC 9110 renamed this code from its former title, “Payload Too Large” (RFC 7231).
When to use it in APIs
Enforced when clients attempt to upload files or batch data arrays exceeding size limits (e.g., uploading a 25MB file to a 10MB route).
How it compares to other codes
- 411 Length Required: Rejects requests missing the Content-Length header.