Free auditStart free
GuideError · HTTP status codes

413 Request Entity Too Large

A 413 means the request body is bigger than the server allows. Learn how visitors shrink uploads and how admins raise limits on nginx, Apache, PHP and Cloudflare.

4 min
read
8
sources
Oct 22, 2026
updated
Scaplet Editorial Team
author
The short answer

A 413 (Request Entity Too Large, now named Content Too Large) means the server refuses the request because its body is larger than the server is willing or able to process. Visitors should send a smaller file. Site owners must raise the limit in each layer that sets one: nginx client_max_body_size, Apache LimitRequestBody, PHP upload settings and any CDN.

  1. What does 413 Request Entity Too Large mean?
  2. Where the limit lives
  3. Fix it on nginx
  4. Fix it on Apache, PHP and Cloudflare
  5. What it does to SEO
30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Explained

What does 413 Request Entity Too Large mean?

RFC 9110 says the 413 status code indicates that the server is refusing to process a request because the request content is larger than the server is willing or able to process. The server may terminate the request if the protocol version allows it, and otherwise may close the connection. If the condition is temporary, the server should send a Retry-After header saying when the client may try again.

The name changed over time. MDN notes that before RFC 9110 the phrase was "Payload Too Large" and that this message is still widely used. The nginx docs still call it 413 (Request Entity Too Large). It is the same status code.

It differs from a 400, where the request is malformed. Here the request is valid but too big. The nginx docs add a warning that browsers cannot correctly display this error.

02Limits that can cause a 413 or a failed upload

Where the limit lives

Several layers can enforce a size limit, and the smallest one wins. Raising only one often changes nothing.
Layer

nginx

Setting
client_max_body_size
Default or documented value
1m; 0 disables the check
Fix
Raise it in http, server or location, then reload
Layer

Apache

Setting
LimitRequestBody
Default or documented value
1073741824 bytes (older than 2.4.54: 0, unlimited)
Fix
Raise it in the matching server, directory or .htaccess scope
Layer

PHP

Setting
post_max_size, upload_max_filesize
Default or documented value
8M post data; 2M upload (per the PHP manual)
Fix
Raise both; post_max_size must be larger than upload_max_filesize
Layer

Cloudflare

Setting
Maximum upload size
Default or documented value
100 MB on Free and Pro, 200 MB on Business, up to 5 GB on Enterprise
Fix
Chunk uploads, use a DNS-only record, or change plan; adjust it on the zone's Network page
Layer

API gateway or app framework

Setting
Body-size option
Default or documented value
Varies by product
Fix
Check the product's own limits page

PHP behaves differently from the web servers. Its manual says that if the post data is greater than post_max_size, the $_POST and $_FILES superglobals are empty. So a PHP limit gives a form that silently loses its upload, not necessarily a 413.

03How it works

Fix it on nginx

nginx returns the error when the request body size exceeds client_max_body_size. The default is 1 MB.
  1. 1

    Set the limit where the request is handled

    The directive works in http, server and location. Put it in the narrowest scope that needs it.

  2. 2

    Test and reload

    Run nginx -t, then nginx -s reload.

  3. 3

    Check what sits in front of nginx

    A load balancer, CDN or another nginx can still enforce a smaller limit. Test the origin directly to see which layer answers.

  4. 4

    Raise the app limit too

    Raise PHP or framework limits to match, or the upload fails further along.

Allow uploads up to 50 MB for one location
server {
    location /upload {
        client_max_body_size 50m;
    }
}

Causes and fixes differ by server and platform. See the 413 guides for nginx.

04Check it

Fix it on Apache, PHP and Cloudflare

Apache's docs say that if the request exceeds the limit, the server returns an error response instead of servicing the request. They also say a PUT implementation needs a value at least as large as any representation the server wants to accept.

php.ini: both values must allow the upload
post_max_size = 64M
upload_max_filesize = 50M

On Cloudflare, customers can adjust the Maximum Upload Size from the zone's Network page, and Cloudflare says setting it below the size of an incoming request causes a 413. Its 413 page ties the per-plan figures to the Cloudflare API upload limit, so treat the table row as Cloudflare's published numbers and check your plan. If you need a larger upload, Cloudflare's guidance is to break the request into smaller chunks, change the DNS record to DNS-only, or upgrade the plan.

Apache: limit uploads to 100 MB in one location
<Location "/upload">
    LimitRequestBody 104857600
</Location>
05Explained

What it does to SEO

A 413 happens on uploads and API posts, not on page views, so crawlers rarely meet it. If Search Console reports one on a page URL, check which rule produces it, since a normal GET request should not carry a large body. Google handles 4xx codes except 429 as content that doesn't exist, and removes indexed URLs that return them. See 4xx errors.

Related errors: Apache, IIS, Express, Cloudflare, PHP, Vercel.

Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01What is the meaning of 413 Request Entity Too Large?

The server refuses to process the request because its body is larger than the server is willing or able to handle. The current standard name is Content Too Large; Payload Too Large and Request Entity Too Large are older names.

02How do I fix HTTP error 413?

Send a smaller file, or raise the limit in each layer that sets one: nginx client_max_body_size, Apache LimitRequestBody, PHP upload settings and any CDN. Reload the service and test again.

03Why do I keep getting request entity too large after raising the limit?

A second layer still has a smaller limit. A CDN, proxy or load balancer in front of the server, or a PHP or framework setting behind it, can enforce its own cap, and the smallest one wins.

04How do I fix payload too large?

Same fix, different name. Payload Too Large is the older MDN wording for the 413 status. Find the layer that enforces the size limit and raise it, or split the upload into smaller chunks.

Sources · 8

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • rfc-editor.org
  • mozilla.org
  • cloudflare.com
  • nginx.org
  • apache.org
  • php.net
  • google.com
  1. 01RFC 9110: HTTP Semanticsrfc-editor.org · checked 2026-10-25
  2. 02413 Content Too Large - HTTP - MDN Web Docsdeveloper.mozilla.org · checked 2026-10-25
  3. 03Error 413: Payload Too Large - Cloudflare Support docsdevelopers.cloudflare.com · checked 2026-10-25
  4. 04Module ngx_http_core_module - nginx documentationnginx.org · checked 2026-10-25
  5. 05Core Features - Apache HTTP Server 2.4httpd.apache.org · checked 2026-10-25
  6. 06Runtime Configuration - PHP manual (post_max_size)php.net · checked 2026-10-25
  7. 07Common Pitfalls - PHP manual (file uploads)php.net · checked 2026-10-25
  8. 08How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-10-25
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane