413 Content Too Large

The request body is larger than the server is willing or able to process.

Status

HTTP/1.1 413 Content Too Large

Details

413 (previously called Payload Too Large, and before that Request Entity Too Large) means the body exceeded a configured limit. The limit is frequently enforced by infrastructure rather than the application: nginx client_max_body_size, an ingress controller default, or a serverless platform's payload cap.

If the condition is temporary, the server may include Retry-After. Usually it is not temporary, and the fix is either a smaller upload or a raised limit.

Headers

Common causes

How to fix it

As the client

As the server

Examples

POST /api/uploads HTTP/1.1
Host: api.example.com
Content-Length: 26214400

HTTP/1.1 413 Content Too Large
Content-Type: application/json; charset=utf-8

{"error":"payload_too_large","max_bytes":10485760}

Specifications

RFC 9110 §15.5.14

See also