The target site, or a proxy or CDN in front of it.
413 — Payload Too Large
The request body exceeds a limit. Worth knowing which layer set it: nginx defaults to 1 MB, Cloudflare caps free plans at 100 MB, and the application may have its own smaller limit inside both.
A proxy does not fix this. A size limit is about the bytes, not about where they came from.
Why it happens
An upload larger than the server accepts.
A CDN limit hit before the origin ever sees the request.
Cookies and headers grown large enough to trip a header-size limit reported as 413.
How to fix it
- Split the upload, or use whatever chunked or resumable endpoint the API offers.
- Compress the body where the server accepts it.
- If the limit is a CDN's, no change on the origin side will help — the request stops earlier than that.
FAQ
What does 413 mean?›
The request body exceeds a limit. Worth knowing which layer set it: nginx defaults to 1 MB, Cloudflare caps free plans at 100 MB, and the application may have its own smaller limit inside both. The target site, or a proxy or CDN in front of it.
Why am I getting 413?›
An upload larger than the server accepts. A CDN limit hit before the origin ever sees the request. Cookies and headers grown large enough to trip a header-size limit reported as 413.
How do I fix 413?›
Split the upload, or use whatever chunked or resumable endpoint the API offers. Compress the body where the server accepts it. If the limit is a CDN's, no change on the origin side will help — the request stops earlier than that.
Will a proxy fix 413?›
A size limit is about the bytes, not about where they came from.