← All Status Codes
413
Payload Too Large
⚠️ Client Error
Medium Risk
📖 What Is HTTP 413?
The request body exceeds the server maximum. The server may close the connection to prevent the client from continuing the request.
🛡️ Security Implications
Large payload attacks can exhaust server memory and disk. Set appropriate limits and reject oversized requests early.
🔍 Common Causes
File upload exceeds limit, JSON/XML body too large, base64-encoded data bloats the request size.
🔧 How to Fix
Reduce payload size. Check server upload limits (client_max_body_size in Nginx, LimitRequestBody in Apache). Use chunked uploads for large files.
🖥️ How to Check
curl -I -o /dev/null -w "%{http_code}" https://example.com