HTTP 413 Payload Too Large — What It Means

What HTTP status code 413 Payload Too Large means, when servers return it, and how to handle it correctly.

Published September 24, 2026

HTTP 413 Payload Too Large means the request body exceeds the size limit the server is willing to process.

What it means

Seen with file uploads that exceed limits in the web server, proxy or application.

Common causes: Large file uploads; Low client_max_body_size; Big JSON bodies.

On the wire

POST /upload HTTP/1.1
HTTP/1.1 413 Payload Too Large
Content-Length: 209715200
A typical 413 exchange.

Practical examples

Test it from the shell

curl -i https://example.com/path   # look for HTTP 413

Handling 413 in code or config

client_max_body_size 50m;

How to fix it

Raise the server limit; Compress or chunk the upload; Reject early with a clear message.

1. Reproduce: curl -i <url>
2. Confirm the status is 413
3. Apply the fix above and re-test

Common mistakes

  • Raise the server limit
  • Compress or chunk the upload
  • Ignoring the response headers that explain the details.

Key takeaways

  • 413 means Payload Too Large.
  • HTTP 413 Payload Too Large means the request body exceeds the size limit the server is willing to process.
  • Read the response headers and logs for the exact cause.

FAQ

How do I raise the limit?

Increase it in Nginx (client_max_body_size), PHP (upload_max_filesize, post_max_size) and the app.

Is 413 a client or server error?

It is a client error status code, in the 4xx class.

More HTTP articles