HTTP 413 Content Too Large (previously called Payload Too Large) means the request body is larger than the server is configured to accept. The server may close the connection or return a Retry-After header suggesting when to try again.
The uploaded file is larger than the server's configured maximum upload size (e.g., Nginx client_max_body_size).
The JSON or XML payload exceeds the API's request body size limit.
Compress the file, reduce image resolution, or split the upload into smaller chunks.
On the server, increase the body size limit.
# Nginx: client_max_body_size 50M;
# Apache: LimitRequestBody 52428800
# Node.js: app.use(express.json({ limit: '50mb' }))For large files, implement multipart upload or chunked transfer encoding.