4xx Client Error
HTTP 413 Content Too Large
The request entity is larger than limits defined by the server. The server might close the connection or return a Retry-After header. Previously called "Request Entity Too Large."
Common Causes
- File upload exceeds the server's maximum size limit
- Request body too large for the API endpoint
- Image or video file exceeds upload restrictions
- JSON payload exceeds server's body parser limit
How to Fix
- 1Compress or reduce the file size before uploading
- 2Increase the server's upload size limit if you control it
- 3Split large uploads into smaller chunks
- 4Check the server's documentation for size limits
Example
HTTP 413 Content Too Large
POST /upload HTTP/1.1 Content-Length: 524288000 (500 MB) → 413 Content Too Large → "Maximum upload size is 100 MB"
Related Client Error Codes
400
Bad Request
401Unauthorized
402Payment Required
403Forbidden
404Not Found
405Method Not Allowed
406Not Acceptable
407Proxy Authentication Required
408Request Timeout
409Conflict
410Gone
411Length Required
412Precondition Failed
414URI Too Long
415Unsupported Media Type
416Range Not Satisfiable
417Expectation Failed
418I'm a Teapot
421Misdirected Request
422Unprocessable Content
423Locked
424Failed Dependency
425Too Early
426Upgrade Required
428Precondition Required
429Too Many Requests
431Request Header Fields Too Large
451Unavailable For Legal Reasons