400 Bad Request: Request Header Or Cookie Too Large (Header Field Too Long, 431, OpenResty): The Fix in Chrome, Edge and Firefox, and the Real Header Limits on S3, CloudFront, ALB, API Gateway, nginx, Node.js and Apache
"400 Bad Request: Request Header Or Cookie Too Large", "Bad Request - Header Field Too Long" and S3's RequestHeaderSectionTooLarge all mean the same thing: your browser sent the website more header data than its server accepts, and the extra is nearly always cookies the site itself piled up. If you are a visitor, delete that one site's cookies (in Chrome: the icon left of the address, then Cookies and site data) and reload; it takes ten seconds. If it is your site, the fix is to send less, and here the limits differ more than people expect: S3 refuses any request whose headers add up to more than 8,192 bytes, nginx and Apache refuse a single header line over about 8 KB, while CloudFront accepted a 20,000-byte header and only refused at 40,000. So the same cookie can pass the edge and break the server behind it.
Jake's shop staff use the online store's admin page all day, and one Monday it greeted them with a plain white page: 400 Bad Request. Request Header Or Cookie Too Large. nginx. Customers were fine; only the office was broken. Ethan opened the browser's developer tools, counted 61 cookies for the shop's domain, most of them from marketing tools tried and forgotten, and deleted them. "The store didn't break," he said. "Your browser was carrying a suitcase it wasn't allowed to bring in."
Every response quoted on this page is the exact text the servers return, from real Amazon S3 and CloudFront endpoints and from current nginx 1.31 and Apache 2.4.69 with their default settings, so you can match yours word for word. If S3 or CloudFront are new to you, what CloudFront is covers the basics first.
What "request header too long" actually means
Every time your browser asks a website for a page, it sends a few lines of text before anything else: the address it wants, which browser it is, which languages you read, and every cookie that site has stored with you. Those lines are the request headers. Servers set a maximum size for them, partly to protect themselves from attacks that send endless headers, and when a request is over the limit they refuse it with HTTP status 400 Bad Request (or the more specific 431 Request Header Fields Too Large, or CloudFront's own 494) before the website's code ever runs.
The cookie part is what grows. Each login, each analytics or chat tool, each A/B test and each "remember this" setting adds a cookie, and the browser sends all of them back on every single request to that domain. A site that stores its session or a large sign-in token in a cookie can push a visitor over 8 KB on its own. That is why the error usually hits one site, one browser and often one person (the one who has used the site longest), while everyone else sees the page fine.
Jake: "So the website gave me the cookies and then complained I had too many."
Ethan: "That's exactly it. It's the site's mess, sitting in your browser."
The fix for visitors: clear that one site's cookies
You do not need to clear all your cookies and log out of everything. Delete only the cookies for the site that shows the error:
- Chrome or Edge: on the error page, click the icon to the left of the address (a slider or a padlock), choose Cookies and site data (Edge: Cookies), then Manage on-device site data and delete the entries for that site, including its other subdomains. Reload.
- Firefox: click the padlock, then Clear cookies and site data, confirm, reload.
- Safari on a Mac: Safari menu, Settings, Privacy, Manage Website Data, search for the site, Remove.
- iPhone or iPad: Settings app, Safari, Advanced, Website Data, search, swipe to delete.
- Android Chrome: the three dots, Settings, Site settings, All sites, pick the site, Delete.
To check before deleting anything, open the same address in a private or incognito window, which starts with no cookies. If the page works there, cookies are the cause and the steps above will fix it. If the private window shows the same error, the problem is not your cookies: the address itself may be extremely long (a link with a huge tracking parameter), or something on your machine is adding headers, such as a browser extension or a corporate proxy. Try with extensions turned off, or from another network.
If the error comes back a few days later on the same site, the site is creating cookies faster than it cleans them up. You can keep deleting them, but the real fix is on the site owner's side, which is the rest of this page.
Which server said it: the exact messages
The wording tells you which piece of software refused the request, which tells a site owner where to look:
| The page says | Who sent it |
|---|---|
400 Bad Request / Request Header Or Cookie Too Large / nginx | nginx (web server or reverse proxy) |
Bad Request / Your browser sent a request that this server could not understand. / Size of a request header field exceeds server limit. | Apache httpd |
Bad Request - Header Field Too Long / HTTP Error 400. A request header field is too long. (or The size of the request headers is too long.) | Windows (IIS or any app on the HTTP.sys driver) |
<Code>RequestHeaderSectionTooLarge</Code> in an XML error | Amazon S3 |
494 ERROR / The request could not be satisfied / Generated by cloudfront (CloudFront) | Amazon CloudFront |
431 Request Header Fields Too Large | Node.js servers and many frameworks, which use the specific status code |
Here is what nginx 1.31.6 with its default settings returned for a request with a 9,000-byte cookie (an 8,000-byte cookie passed):
<html>
<head><title>400 Request Header Or Cookie Too Large</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<center>Request Header Or Cookie Too Large</center>
<hr><center>nginx/1.31.6</center>
</body>
</html>
And Apache 2.4.69, for the same 9,000-byte cookie:
Bad Request
Your browser sent a request that this server could not understand.
Size of a request header field exceeds server limit.
The header size limits, server by server
| Server or service | Default limit | What is counted | Can you raise it? |
|---|---|---|---|
| Amazon S3 | 8,192 bytes | The whole header section | No |
Amazon S3 user metadata (x-amz-meta-*) | 2,048 bytes | All metadata keys and values together | No |
| Amazon CloudFront | 32,768 bytes | Request line, headers and query string (not the body); URLs max 8,192 bytes | No |
| Application Load Balancer | 16 KB request line, 16 KB per header, 64 KB all headers | Each line, each header, and the total | No |
| API Gateway REST API | 20,480 bytes (8,000 for a private API) | All header names and values | No |
| API Gateway HTTP API | 10,240 bytes | Request line plus headers | No |
| nginx | About 8 KB per header line (large_client_header_buffers 4 8k) | Each header line, and four buffers in total | Yes |
| Apache httpd | 8,190 bytes per header (LimitRequestFieldSize), 100 headers | Each header field | Yes |
| Node.js | 16 KB (--max-http-header-size) | All headers | Yes |
The difference between "each header" and "all headers" matters more than the numbers. nginx and Apache happily took ten headers of 1,500 bytes each, 15 KB in total, because no single line was over their limit. S3 refused thirty headers of 300 bytes, about 9 KB in total, because S3 adds everything up. And two headers of 3,900 bytes passed S3 while one cookie of 9,000 failed everywhere except CloudFront and the load balancer.
The practical rule for a site owner: keep the total of everything your browser sends to any one host under 8 KB, and you are inside every limit in the table. Over that, it depends on which server the request reaches first, and in a modern AWS setup a request can pass through three of them.
"Request Header Or Cookie Too Large" with "openresty" at the bottom: what it means
Many people meet this error as a plain white page with three lines and a word they have never seen: openresty. OpenResty is a web server built on nginx, used by a lot of large sites, gateways and hosting platforms, and the page is simply nginx's standard message with OpenResty's name under it. Here is exactly what OpenResty 1.31.1.1 sends back, with its default settings:
<html>
<head><title>400 Request Header Or Cookie Too Large</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<center>Request Header Or Cookie Too Large</center>
<hr><center>openresty/1.31.1.1</center>
</body>
</html>
The meaning is the same as with nginx: one line of the request headers did not fit in the server's 8 KB buffer, or all the large lines together did not fit in its four buffers. Testing the defaults shows where the line is, and why cookies are nearly always the cause:
| Request | Result |
|---|---|
| One cookie of 7,000 bytes | 200 OK |
| One cookie of 9,000 bytes | 400 Request Header Or Cookie Too Large |
| 40 small cookies of about 220 bytes each (8,828 bytes together) | 400 Request Header Or Cookie Too Large |
| Three separate 7,000-byte headers | 200 OK |
| Five separate 7,000-byte headers | 400 Request Header Or Cookie Too Large |
The third row is the one that surprises people. No single cookie was large, but a browser sends all of a site's cookies in one Cookie header line, so forty small ones add up to one line over 8 KB. That is why the error appears out of nowhere on a site you use every day: each visit, each sign-in and each tracking tool adds a cookie, until the combined line crosses the limit.
If you are a visitor, the fix is the one in the browser section: delete that site's cookies. If the server is yours, the OpenResty setting is the nginx one, large_client_header_buffers 4 16k;, in the http or server block, followed by a reload; the lasting fix is still to send fewer and smaller cookies.
Amazon S3: RequestHeaderSectionTooLarge and MetadataTooLarge
S3 answers an oversized request with an XML error you can read in the browser or in the SDK's exception:
HTTP/1.1 400 Bad Request
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>RequestHeaderSectionTooLarge</Code><Message>Your request header section exceeds the maximum allowed size.</Message><MaxSizeAllowed>8192</MaxSizeAllowed><RequestId>...</RequestId><HostId>...</HostId></Error>
Push it much further, with a single header of 20,000 bytes or more, and S3 does not even send the XML: you get a bare HTTP/1.1 400 Bad Request with Connection: close and an empty body, which some tools report as a connection reset. Both come from the same cause.
The common way to hit this on a real site is cookie scope. If your main site sets cookies for the whole domain (Domain=.example.com) and you serve images or downloads from an S3 bucket on a subdomain such as assets.example.com, every one of those cookies travels with every image request to S3. S3 has no use for them, but it counts them. The fixes, best first:
- Serve S3 content through CloudFront with a cache policy and origin request policy that forward no cookies to S3; CloudFront then strips them before the request reaches the bucket, and CloudFront's own limit is four times larger.
- Put static files on a separate domain that your cookies cannot reach, such as
example-static.comor the plain CloudFront domain name. - Scope your cookies to the host that needs them, by leaving out the
Domainattribute so they stay onwww.example.comonly.
The second S3 error in this family comes from uploads, not browsers. S3 limits user-defined metadata, the x-amz-meta-* headers you can attach to an object, to 2 KB, measured as the UTF-8 bytes of all keys and values together:
<Error><Code>MetadataTooLarge</Code><Message>Your metadata headers exceed the maximum allowed metadata size</Message><MaxSizeAllowed>2048</MaxSizeAllowed><Size>3005</Size>...</Error>
The Size element tells you exactly how far over you are. Store large descriptions in the object itself, in a sidecar JSON file, in object tags (up to 10 per object) or in a database keyed by the object name, and keep metadata for short values only.
CloudFront: the 494 error
CloudFront's limit is the most generous on this list, 32,768 bytes for the request line, headers and query string combined, and a 20,000-byte header passed through it without complaint. Over the limit, CloudFront answers with a status code you will not find in the HTTP standard, 494, and its usual error page:
HTTP/2 494
server: CloudFront
494 ERROR
The request could not be satisfied.
Bad request. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
...
Generated by cloudfront (CloudFront)
Request ID: ...
Note the misleading middle sentence: "too much traffic or a configuration error". It is CloudFront's generic text for a refused request; for a 494 the cause is the size of the request, not traffic.
Because CloudFront is so tolerant, the error you see behind it usually comes from the origin instead: nginx, Apache or S3 refusing a request CloudFront passed on. Check which headers and cookies your distribution forwards to the origin; a cache policy or origin request policy that forwards all cookies hands the origin the whole suitcase. Forward only the cookies the origin actually reads. CloudFront not forwarding headers explains how cache and origin request policies decide what reaches the origin. The URL limit of 8,192 bytes is the other CloudFront trap: a link with an enormous query string can fail on its own, cookies or not.
Application Load Balancer and API Gateway
An Application Load Balancer returns HTTP 400: Bad request, logged as an ELB 4XX in its metrics, when the request line is over 16 KB, any single header is over 16 KB, or all headers together exceed 64 KB. Those are fixed limits. Since the targets behind an ALB are usually nginx, Apache or an application server with smaller defaults, an ALB rarely produces this error itself; check the target first. The HTTPCode_ELB_4XX_Count metric tells you whether the load balancer refused the request (it counts the ALB's own 400s) or passed it to a target that refused it (HTTPCode_Target_4XX_Count).
API Gateway has its own fixed ceilings: 20,480 bytes for all headers on a REST API (8,000 for a private REST API) and 10,240 bytes for the request line plus headers on an HTTP API. A front end that sends a large sign-in token in an Authorization header plus big cookies to the same domain can cross the HTTP API limit sooner than expected. The fixes are the same as for any server: smaller tokens and fewer cookies on the API's host, because neither limit can be raised.
The fix that lasts for site owners: send less
Raising a server limit makes the error go away for a while; the cookies keep growing until they hit the next limit, which may be one you cannot raise (S3, CloudFront, ALB, API Gateway). Shrinking what the browser sends fixes it for good:
- Find the big cookies. In the browser's developer tools (F12), open Application (Chrome, Edge) or Storage (Firefox), then Cookies, select your domain and sort by size. The usual suspects are session data stored in the cookie itself, a large sign-in token (JWT), and leftovers from marketing and analytics tools.
- Keep session data on the server. Store a short session ID in the cookie and the session itself in a server-side store such as Redis or Valkey on ElastiCache, or DynamoDB. A session cookie of 40 bytes cannot outgrow anything.
- Trim the token. If your sign-in token is a JWT in a cookie or header, remove claims you do not use (long group lists are the classic cause) or switch to a reference token the server looks up.
- Scope cookies tightly. Leave out
Domainso a cookie stays on the host that set it, and setPathwhere only part of the site needs it. - Expire what you no longer use. Old tools leave cookies behind for years. Remove their scripts, then have your site send
Set-Cookiewith a past expiry date for each retired cookie name so returning visitors get cleaned up automatically. - Serve static files from a cookieless domain or through CloudFront with no cookies forwarded, as in the S3 section.
Ethan did steps 1, 2 and 5 for Jake's store: the session moved to the server, three dead tracking tools came out of the page template, and a small script expired their cookies. The cookie header for the shop's domain went from 11 KB to under 1 KB.
Raising the limit on nginx, Apache, IIS and Node.js
If you control the server and need breathing room while the cookie diet takes effect, these are the settings. Double the default rather than setting something enormous; very large header buffers make the server easier to overwhelm.
nginx, in the http or server block, then sudo nginx -t && sudo systemctl reload nginx:
large_client_header_buffers 4 16k;
Apache httpd, in the main configuration or a virtual host, then restart Apache:
LimitRequestFieldSize 16380
LimitRequestLine 16380
IIS and other HTTP.sys applications on Windows: the limits live in the registry under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters as the DWORD values MaxFieldLength (one header) and MaxRequestBytes (request line plus headers). Raise both, then restart the HTTP service or the server. Take a backup of the key first.
Node.js: start the process with a larger limit, for example node --max-http-header-size=32768 server.js, or set maxHeaderSize when you create the server with http.createServer.
Behind a load balancer or CloudFront, raise the limit on the server that produced the message (the table in the messages section tells you which), and remember that anything over 8 KB will still fail if the same request ever reaches S3 directly.
431 Request Header Fields Too Large on localhost: React, Next.js, Vue and Node.js
Developers often see a different status, 431 Request Header Fields Too Large, and usually on their own machine: a React, Next.js or Vue app that worked yesterday now fails at http://localhost:3000. These development servers run on Node.js, and Node's built-in HTTP server answers with 431 when the request headers are bigger than its limit. On Node.js 22 the limit is 16 KB:
$ node devserver.js
max header size 16384 node v22.23.3
15,000-byte cookie -> 200 OK
17,000-byte cookie -> 431 Request Header Fields Too Large
30,000-byte cookie -> 431 Request Header Fields Too Large
Why it happens on localhost in particular: cookies are not separated by port. A cookie set by the app on localhost:3000 is also sent to localhost:5173, localhost:8080 and every other project you run on the same machine. Months of sign-in tokens, analytics cookies and test sessions from different projects pile up under the single name localhost, until the Cookie header passes 16 KB.
The fixes, quickest first:
- Clear the localhost cookies. Open the browser's developer tools (F12), go to Application (Chrome, Edge) or Storage (Firefox), expand Cookies, select
http://localhost:3000and clear them. Because they are shared, this clears them for your other local projects too. - Use a different host name per project so cookies stop mixing:
http://127.0.0.1:3000has its own cookie jar separate fromlocalhost, and names such asshop.localhostare separate again. - Raise Node's limit for the dev server, which works for anything that runs on Node, including Next.js and Vite:
With that setting, the same 17,000 and 30,000-byte requests return 200 OK. On Windows PowerShell, set it first withNODE_OPTIONS=--max-http-header-size=32768 npm run dev$env:NODE_OPTIONS="--max-http-header-size=32768". - Find what is setting big cookies. If one cookie is several kilobytes (often a sign-in token stored whole in a cookie), fix that in the app; production servers and CDNs have their own limits, and 8 KB is common.
Spring Boot applications show the same family of errors when headers exceed server.max-http-request-header-size, which defaults to 8KB. With the default Tomcat server the limit covers the request line plus all header names and values together; with Netty it applies to each header separately. Raise it in application.properties, for example server.max-http-request-header-size=16KB, and restart.
Jake met this one without writing any code: the shop's booking page, running on Ethan's laptop for a demo, failed in front of a customer. Ethan cleared his localhost cookies, and the culprit turned out to be a year of test logins from four other projects.
How to measure the headers your browser sends
Before and after any change, measure. In the browser console on the affected site (F12, Console), this prints how many characters of cookies the page can see, which is most of the header:
document.cookie.length
It does not include cookies marked HttpOnly, which are often the biggest, so for the full picture use the Network tab: reload, click the first request, and look at Request Headers; the cookie line is the one to watch. From a terminal, you can reproduce the error without a browser to test a server's limit, for example a 9,000-byte cookie against your own nginx:
curl -s -o /dev/null -w "%{http_code}\n" -H "Cookie: test=$(head -c 9000 /dev/zero | tr '\0' a)" https://www.example.com/
A 400 (or 431, or 494) means the limit is below 9 KB; a 200 means the request got through. Test only servers you own.
Troubleshooting by symptom
Only one person or one office sees the error
Their browser has collected more cookies than everyone else's, usually from long use of the site or from admin tools. Delete that site's cookies in their browser; as the owner, find out which cookie grows.
It works in a private window but not in the normal one
Cookies confirmed. Clear the site's cookies, or as the owner shrink them as in the owner's fix.
It fails in a private window too
Look at the address: a very long URL or query string can be the problem (CloudFront's URL limit is 8,192 bytes). Otherwise a browser extension, proxy or VPN may be adding headers; test without them.
Images and downloads fail but pages load
The static files are on a host that receives the main site's cookies, often S3 on a subdomain. Serve them through CloudFront without forwarding cookies, or from a separate domain.
The error appeared right after a login change
A new sign-in setup often puts a larger token in a cookie. Check the size of the session or token cookie and trim its contents.
Raising the nginx limit did not help
Another server in the path is refusing it: the message wording tells you which. Behind CloudFront or an ALB, check each hop, and remember S3 cannot be raised.
S3 upload fails with MetadataTooLarge
Your x-amz-meta-* headers add up to more than 2 KB. Move long values into the object, a sidecar file, tags or a database.
API calls fail with 400 or 431 but the website works
The API host receives a large Authorization header plus cookies. Trim the token, and keep website cookies off the API's domain.
Frequently asked questions
What does 400 Bad Request request header too long mean?
Your browser sent more header data, mostly cookies, than the server accepts, so the server refused the request before the website's code ran.
How do I fix request header too large?
As a visitor, delete the cookies for that one site and reload. As the site owner, shrink or remove large cookies, and raise the server limit only as a stopgap.
How do I fix the header too long error in Chrome?
Click the icon left of the address, choose Cookies and site data, manage on-device site data, delete the site's entries and reload.
What does Request Header Or Cookie Too Large mean?
It is nginx's message for a request with a header line, usually the cookie line, larger than its buffer of about 8 KB.
What is Bad Request - Header Field Too Long?
The Windows HTTP.sys and IIS message for a single header, usually cookies, over the server's MaxFieldLength. Clearing the site's cookies fixes it for visitors.
What is RequestHeaderSectionTooLarge in S3?
S3's error when all request headers together exceed 8,192 bytes. The XML response includes MaxSizeAllowed 8192. It cannot be raised.
What is the maximum header size for S3?
8,192 bytes for the whole header section, and 2,048 bytes for user-defined x-amz-meta-* metadata within it.
What is a 494 error in CloudFront?
CloudFront's response when the request line, headers and query string together exceed 32,768 bytes. It is a CloudFront-specific code, not a standard HTTP one.
What is the ALB header size limit?
16 KB for the request line, 16 KB for any single header and 64 KB for all headers. Over that, the ALB returns HTTP 400.
What is the API Gateway header size limit?
20,480 bytes for all headers on a REST API, 8,000 bytes on a private REST API, and 10,240 bytes for the request line plus headers on an HTTP API.
How do I increase the header size in nginx?
Set large_client_header_buffers 4 16k; in the http or server block, test with nginx -t and reload. Shrinking the cookies is the lasting fix.
How do I increase the header size limit in Apache?
Set LimitRequestFieldSize (default 8190) and LimitRequestLine to a larger value such as 16380, then restart Apache.
What is the 431 Request Header Fields Too Large error?
The specific HTTP status code for oversized headers, used by Node.js and many frameworks. It means the same as the 400 versions on this page.
Will clearing cookies log me out?
Of that one site, yes, which is the point. Clearing only that site's cookies leaves your other logins alone.
Why do cookies make headers too large?
The browser sends every cookie for a domain with every request to it. Sessions or tokens stored in cookies, and many tracking tools, can add up to more than 8 KB.
Can a browser extension cause request header too large?
Yes, if it adds headers to every request. If a private window with extensions turned off works, an extension or the cookies are the cause.
Does S3 send cookies from my main website?
Your browser does, if the bucket is on a subdomain your cookies cover, such as assets.example.com for cookies set on .example.com. S3 counts them against its 8 KB limit.
What does request header or cookie too large mean?
The request your browser sent had more header data, almost always cookies, than the server accepts. Deleting that site's cookies fixes it for visitors.
What does openresty mean in the error?
OpenResty is an nginx-based web server; the page is nginx's standard error with OpenResty's name. The site's cookie header passed its 8 KB per-line limit.
Why do I get 431 Request Header Fields Too Large on localhost?
Cookies from every project on localhost are shared across ports and pile up past Node's 16 KB limit. Clear the localhost cookies or raise the limit with NODE_OPTIONS.
How do I fix 431 Request Header Fields Too Large in Next.js or React?
Clear the localhost cookies in developer tools, or start the dev server with NODE_OPTIONS=--max-http-header-size=32768.
How do I fix 431 Request Header Fields Too Large in Spring Boot?
Raise server.max-http-request-header-size (default 8KB) in application.properties, for example to 16KB, and restart; also reduce cookie size.
Why do lots of small cookies cause the error?
The browser sends all of a site's cookies in one Cookie header line, so many small cookies add up to one line over the server's limit.
For readers preparing for an AWS certification
We have been covering AWS certifications alongside our fixes, so here is a short extra for readers studying for one. If you only came for the fix, you already have it; feel free to skip this part.
Exams that test this topic: Solutions Architect – Associate (SAA-C03) • Developer – Associate (DVA-C03 from December 1, 2026) • CloudOps Engineer – Associate (SOA-C03).
Here are the exam-style questions this topic tends to raise, with the reasoning you need to answer them:
1. Images served from an S3 bucket on assets.example.com fail with RequestHeaderSectionTooLarge for logged-in users only. What is the cause and the best fix?
Cookies set for .example.com are sent to the bucket's host and exceed S3's 8,192-byte header limit; serve the files through CloudFront without forwarding cookies, or from a cookieless domain.
2. An object upload to S3 fails with MetadataTooLarge. What limit was exceeded?
User-defined x-amz-meta-* metadata is limited to 2 KB in total; store larger values in the object, a sidecar file, tags or a database.
3. Users behind CloudFront receive HTTP 494. What does it mean?
The request line, headers and query string together exceeded CloudFront's 32,768-byte limit.
4. An Application Load Balancer returns HTTP 400 and HTTPCode_ELB_4XX_Count rises. Which header limits could cause it?
A request line over 16 KB, a single header over 16 KB, or more than 64 KB of headers in total.
5. A single-page app calling an API Gateway HTTP API gets errors only for users with large sign-in tokens. Which quota applies?
HTTP APIs limit the request line plus headers to 10,240 bytes; trim the token or the cookies sent to the API host.
6. A web app stores its whole session in a cookie and users hit header size errors. What design change removes the problem?
Keep a short session ID in the cookie and the session data server-side, for example in ElastiCache or DynamoDB.
Exam codes and dates change often. Our AWS certification changes page keeps track of what is current.
A month later the office browsers are still fine, and Ethan added a line to the shop's monthly check: open the developer tools and look at the cookie line. "Cookies are like receipts in a wallet," he told Jake. "Nobody notices them until the wallet won't close."
📌 If you keep one line from this page
A "header too long" or "cookie too large" error means the browser sent more than the server accepts: visitors clear that site's cookies, owners shrink and scope their cookies and keep each host under 8 KB, because S3, CloudFront, ALB and API Gateway limits cannot be raised.
S3 8,192 bytes · CloudFront 32,768 · ALB 16/64 KB · API Gateway 20,480 (REST) / 10,240 (HTTP) · nginx and Apache about 8 KB per header · October 2026.
Revision note. Written October 23, 2026, with responses from Amazon S3 and CloudFront, nginx 1.31.6 and Apache 2.4.69 on that date, and the AWS service quotas current then. "Little strokes fell great oaks," the proverb says, and a few bytes per cookie fell this page.