# 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.

Canonical: https://scaplet.com/errors/http/413

Guide Error · HTTP status codes

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

413 4xx · Client error

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?](#what-does-413-request-entity-too-large-mean)
2. [Where the limit lives](#where-the-limit-lives)
3. [Fix it on nginx](#fix-it-on-nginx)
4. [Fix it on Apache, PHP and Cloudflare](#fix-it-on-apache-php-and-cloudflare)
5. [What it does to SEO](#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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F413%20(%22413%20Request%20Entity%20Too%20Large%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F413%20(%22413%20Request%20Entity%20Too%20Large%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F413%20(%22413%20Request%20Entity%20Too%20Large%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fhttp%2F413%20(%22413%20Request%20Entity%20Too%20Large%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

_01_Explained

## What does 413 Request Entity Too Large mean?

RFC 9110 says the 413 [status code](/glossary/http-status-codes) 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](/glossary/entity) Too Large). It is the same status code.

It differs from a [400](/errors/http/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.

_02_Limits 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.

_03_How 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](/errors/http/413/nginx).

_04_Check 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.

**Don't remove limits entirely**Setting nginx to `0` turns off the body size check. A limit protects the server from huge requests, so raise it to what your largest legitimate upload needs and no more.

Apache: limit uploads to 100 MB in one location

```
<Location "/upload"> LimitRequestBody 104857600 </Location>
```

_05_Explained

## 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](/glossary/google-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](/seo-issues/4xx-errors).

Related errors: [Apache](/errors/http/413/apache), [IIS](/errors/http/413/iis), [Express](/errors/http/413/express), [Cloudflare](/errors/http/413/cloudflare), [PHP](/errors/http/413/php), [Vercel](/errors/cdn/vercel-payload-too-large).

Questions

## Asked a lot.

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

_01_ What 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.

_02_ How 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.

_03_ Why 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.

_04_ How 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. 01 [RFC 9110: HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html) rfc-editor.org · checked 2026-10-25
2. 02 [413 Content Too Large - HTTP - MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/413) developer.mozilla.org · checked 2026-10-25
3. 03 [Error 413: Payload Too Large - Cloudflare Support docs](https://developers.cloudflare.com/support/troubleshooting/http-status-codes/4xx-client-error/error-413/) developers.cloudflare.com · checked 2026-10-25
4. 04 [Module ngx_http_core_module - nginx documentation](https://nginx.org/en/docs/http/ngx_http_core_module.html) nginx.org · checked 2026-10-25
5. 05 [Core Features - Apache HTTP Server 2.4](https://httpd.apache.org/docs/2.4/mod/core.html) httpd.apache.org · checked 2026-10-25
6. 06 [Runtime Configuration - PHP manual (post_max_size)](https://www.php.net/manual/en/ini.core.php) php.net · checked 2026-10-25
7. 07 [Common Pitfalls - PHP manual (file uploads)](https://www.php.net/manual/en/features.file-upload.common-pitfalls.php) php.net · checked 2026-10-25
8. 08 [How HTTP status codes affect Google's crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-10-25

## Keep learning

[All errors](/errors)

[Learn HTTP 400 Bad Request HTTP status codes](/errors/http/400) [Related 404 Not Found on nginx HTTP status codes](/errors/http/404/nginx) [Read next 413 Payload Too Large on Cloudflare HTTP status codes](/errors/http/413/cloudflare) [Do Run a free site audit Free, about two minutes](/site-audit)

Other 413 errors
[413 Payload Too Large in Express](/errors/http/413/express) [413 Payload Too Large in PHP uploads](/errors/http/413/php) [413 Payload Too Large on Cloudflare](/errors/http/413/cloudflare) [413 Request Entity Too Large in Apache](/errors/http/413/apache) [413 Request Entity Too Large in IIS](/errors/http/413/iis)

Nearby in errors
[HTTP 412 Precondition Failed](/errors/http/412)

More in HTTP status codes
[HTTP 500 Internal Server Error](/errors/http/500) [HTTP 501 Not Implemented](/errors/http/501) [HTTP redirect codes](/errors/http/http-redirect-codes) [HTTP status code list](/errors/http/http-status-code-list) [REST API status codes](/errors/http/rest-api-status-codes) [100 Continue](/errors/http/100) [101 Switching Protocols](/errors/http/101) [402 Payment Required](/errors/http/402) [403 Forbidden](/errors/http/403) [404 Not Found](/errors/http/404) [406 Not Acceptable](/errors/http/406) [411 Length Required](/errors/http/411) [413 Request Entity Too Large](/errors/http/413) [414 URI Too Long](/errors/http/414) [415 Unsupported Media Type](/errors/http/415) [416 Range Not Satisfiable](/errors/http/416) [417 Expectation Failed](/errors/http/417) [418 I'm a Teapot](/errors/http/418) [421 Misdirected Request](/errors/http/421) [422 Unprocessable Content (Unprocessable Entity)](/errors/http/422) [423 Locked](/errors/http/423) [424 Failed Dependency](/errors/http/424) [425 Too Early](/errors/http/425) [426 Upgrade Required](/errors/http/426)

Terms on this page
[HTTP status codes](/glossary/http-status-codes) [Entity](/glossary/entity) [Google Search Console](/glossary/google-search-console)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
