Http Code

413

Payload Too Large

The server deems the request to be invalid because the payload of the request is larger than the limits defined by the server. Hence, it returns a 413 response and closes the connection. The client may repeat the request in the future.

Use Case

A user is trying to upload a photo to a server. Let's say the server has a limit of 5MB but the picture the user is trying to upload is 6MB, so the server rejects the upload request with a 413 code. The client may retry the request in the future, but the server doesn't guarantee accepting it.