DevKits
413

Payload Too Large

4xx Client Error

Last updated:

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

Description

Return this when an upload exceeds your size limit. Include a Retry-After header if the limit is temporary.

When to use

Return 413 when file uploads exceed your quota, or when JSON payloads exceed the configured max body size.

Specification

RFC 9110 §15.5.14

Examples

HTTP response
HTTP/1.1 413 Payload Too Large
Content-Type: application/json

{"error":"Payload Too Large"}
Node.js (Express)
res.status(413).json({ error: "Payload Too Large" });
Go (net/http)
w.WriteHeader(http.StatusRequestEntityTooLarge)
Python (Flask)
return jsonify({"error": "Payload Too Large"}), 413

Related status codes

All 4xx codes