Skip to main content
apiguide.dev

HTTP 413 — Content Too Large

The request body size exceeds the maximum limit allowed by the server.

Status CodeHTTP 413
CategoryClient Error (4xx)
API Error Subtypes1 error schema
HTTP Headers1 header

What does HTTP status code 413 mean?

The 413 Content Too Large status code indicates that the request body is larger than the server is configured or willing to process. RFC 9110 renamed this code from its former title, “Payload Too Large” (RFC 7231).

When to use it in APIs

Enforced when clients attempt to upload files or batch data arrays exceeding size limits (e.g., uploading a 25MB file to a 10MB route).

How it compares to other codes

  • 411 Length Required: Rejects requests missing the Content-Length header.

Specific API Error Types for 413

Associated HTTP Headers

Related HTTP Status Codes