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

  1. 1Compress or reduce the file size before uploading
  2. 2Increase the server's upload size limit if you control it
  3. 3Split large uploads into smaller chunks
  4. 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