413 Content Too Large
4xx Client Error
RFC 9110
Your payload is bigger than we're willing to accept.
What 413 Content Too Large means {#what}
The request body exceeds the server’s size limits. The server may close the connection. If the limit is temporary, a Retry-After header may be included.
When you’ll see a 413 {#when}
- Uploading a file that exceeds the server’s max upload size
- Sending a large JSON body to an API with strict limits
- Nginx’s
client_max_body_sizebeing too low
When to use 413 {#use}
- Document your size limits in the API
- Include the limit in the error response body