Error Codes Wiki

HTTP 413 Payload Too Large — Request Body Exceeds Limit

Warning4xx client error

Overview

HTTP 413 Payload Too Large means the request body exceeds the server maximum size limit.

Key Details

  • Status: 413 Payload Too Large
  • Category: 4xx Client Error
  • Request body exceeds server limit
  • May include Retry-After header

Common Causes

  • File upload exceeds maximum size
  • JSON request body too large
  • Server configured with low body size limit
  • Image or video file exceeds upload limit

Steps

  1. 1Reduce the payload size
  2. 2Compress the data before sending
  3. 3Use chunked upload for large files
  4. 4Check server max body size configuration (e.g., nginx client_max_body_size)

Tags

http-status4xx-client-errorhttp-413httpstatus-code

More in 4xx Client Error

Frequently Asked Questions

Varies — nginx defaults to 1MB, many APIs allow 10-50MB.