413 Content Too Large

HTTP 413 Content Too Large is a 4xx client error status. The request body is larger than the server is willing to accept (formerly "Payload Too Large").

413Status code
4xxClient error
NoCacheable by default
RFC 9110 §15.5.14Defined in

Common causes

What to do

Raise the server limit or upload in chunks.

Example response

HTTP/1.1 413 Content Too Large
Content-Type: application/problem+json

{"status":413,"title":"Content Too Large"}

Returning 413 in code

Express   res.status(413).json({ … });
Flask     return jsonify(…), 413
PHP       http_response_code(413);
Go        w.WriteHeader(413)
nginx     return 413;

Other 4xx codes

Frequently asked questions

What does HTTP 413 mean?
The request body is larger than the server is willing to accept (formerly "Payload Too Large").
Is 413 an error?
Yes. It is a client error: the request needs to change before retrying.
Does a 413 hurt SEO?
If search engines see it repeatedly on pages that should rank, those pages can be dropped from the index. Fix it quickly.