The request body exceeds what the server will accept. Still widely known by its old reason phrase, Payload Too Large.
Defined in RFC 9110 §15.5.14 — 413 Content Too Large · MDN reference
RFC 7231 called this "Payload Too Large"; RFC 9110 renamed it. Both refer to the same code.
File uploads past a limit, oversized JSON payloads, batch requests with too many items — often enforced by a proxy before the application ever sees the request.
Test at the boundary, not far past it. A client that streams uploads may fail differently from one that buffers.
Do not retry the same payload. Compress it, chunk it, or reject it client-side with a clear message. Check the limit before uploading where the API publishes one; failing at the browser is far cheaper than failing after a 40 MB upload.
1 endpoint in this playground answers with 413. Every one is free, needs no signup, and can be called from the browser or with curl.
POST https://funapi.dev/api/movies/v1/movies/{id}/poster — sizeBytes over the 5 MB limit (Movies API) Open & run this endpointAll HTTP status codes · All 39 mock REST APIs · Getting started guide
Last updated