4xx Client error

HTTP 413 Content Too Large

The request body is larger than the server accepts. Formerly named Payload Too Large.

413 Content Too Large (formerly Payload Too Large) means the request body is bigger than the server is willing to accept.

HTTP/1.1 413 Content Too Large

Common causes

  • Uploading a file larger than the server's limit.
  • nginx's client_max_body_size, which defaults to 1 MB.
  • A large JSON body sent to an API with a size limit.

How to fix it

  • Raise the limit on the server (for example client_max_body_size in nginx) if the upload is legitimate.
  • Compress or split the upload, or use a resumable or multipart upload API.

Related status codes

Other status codes

1xx Informational

2xx Success

3xx Redirection

5xx Server error

Search all HTTP status codes