An upload crosses several boundaries before reaching storage. The CDN, reverse proxy, web server and application can each impose a different body-size limit. A rejection at the first boundary may never appear in application logs. Measure the complete request, including multipart overhead, and change only the limits justified by the product's supported workflow.
413 Content Too Large
The request body exceeds a limit enforced by the application or an intermediary.
All HTTP status codes
What does HTTP 413 mean?
An investigation example
Illustrative media-upload investigation
Response: 413 Content Too Large
Application permits 20 MB files; proxy permits 10 MB requests.
Action: align the supported limits with room for request overhead.
Verify: allowed files complete and oversized files receive clear, intentional feedback.Common causes
- A file upload exceeds the web server or proxy's body-size allowance.
- A large JSON request or batch exceeds an application or hosting-provider limit.
- A client accidentally includes duplicated data or a large base64-encoded attachment.
Diagnose the response
Find the rejecting layer and reconcile its limit with the supported upload size and application validation.
- Measure the actual request size, including encoding overhead and multipart boundaries. Compare it with the documented limit at each layer of the request path.
- Identify the rejecting component using its response and logs. Coordinate CDN, proxy and application limits rather than raising only the framework setting.
- Reduce or split the payload when appropriate. If a larger limit is justified, retain bounded limits and check memory, temporary storage and request timeouts before changing it.
What it means for website monitoring
A healthy homepage does not establish that large uploads work. When a client reports this error, correlate edge and application logs using a representative permitted file.