HTTP 413 Content Too Large

A large parcel exceeds a fixed intake limit beside a rack server

HTTP 413 Content Too Large means the recipient refuses to process the request because its content exceeds the size it is willing or able to accept. Older products may display the same code as Payload Too Large or Request Entity Too Large.

Find the limit that rejected the upload

The browser’s form limit, the application’s upload limits and the gateway’s request-body limit can differ. If a permitted small file succeeds and a larger file fails, find the boundary and match the response’s request ID with gateway and backend logs. An early 413 can arrive before the entire file has been uploaded.

Pick an allowed transfer size

Use a smaller payload or the service’s documented multipart or resumable upload workflow where available. When you own the service, align limits across the application and its gateway with the supported upload size. If the server indicates a temporary condition with Retry-After, honor that delay.

Measure the request size at the rejecting hop

Imagine a 9 MB file uploads successfully and an 11 MB file returns 413 through a reverse proxy. Compare upload sizes with the gateway’s documented threshold and inspect which layer logged the request. A multipart form carries boundary and field data alongside the file, so its full request body can exceed the file size shown in the picker. If the backend log has no matching request, focus on the gateway’s limit and any edge service in front of it.

Choose a fix that matches the size policy

If the product documents a 10 MB maximum per request, try a file that puts the complete body comfortably below it. Where the service supports resumable uploads, follow its documented part sizes and session rules. If you control the service and approve larger attachments, set a consistent request budget at each hop and test file sizes on both sides of the intended threshold. A response that reports a missing declared length belongs under 411 Length Required. A rejected Content-Type points to 415 Unsupported Media Type.

RFC 9110.

All HTTP status codes · All proxy testing guides · Open the proxy tester