4xx · Client errorterminal
413Payload Too Large
The request is larger than the server is willing or able to process (e.g., uploading a massive image).
What this code obliges you to do
Retry
Do not retry automatically
Repeating the same request produces the same result. A retry loop here just multiplies load and hides the real fault.
Caching
Not cacheable by default
Caches will not store this response unless you send explicit freshness headers saying they may.
Response body
Body allowed
You may return a payload explaining the outcome — for an error, a machine-readable problem document is worth the effort.
What usually causes it
21
Uploading a 50MB file to a 5MB endpoint limit
2
Massive JSON bodies
Effect on search
Neutral.
How to send it
1Nginx
client_max_body_size 10M; # Inside nginx.confCodes people confuse with this one
1Class4xx
RetryNo
CacheNo
BodyAllowed