Quick answer
HTTP 406 Not Acceptable is a client error: the server has the resource but cannot produce it in any form the request's Accept, Accept-Language or Accept-Encoding headers allow, and will not send a default. A wildcard Accept: / avoids it. Crawlers that get 406 may not index the page.
What is the HTTP 406 Not Acceptable error?
HTTP 406 Not Acceptable is a client error status code. The server is saying: "I have the resource, but I cannot produce it in any form your request says it will accept, and I am not willing to send a different form instead." In the standard (RFC 9110, section 15.5.7), it means the target resource has no current representation acceptable to the user agent according to the content-negotiation headers in the request, and the server is unwilling to supply a default one.
MDN lists three request headers that drive this negotiation: Accept (media types such as text/html or application/json), Accept-Language and Accept-Encoding. If none of the representations the server can produce match what those headers allow, a strict server answers 406. Many servers do not: MDN notes that returning a 200 with a default resource that does not exactly match the client's preferences "may be preferable to sending a 406 response". So the code is uncommon on ordinary web pages, and when it does appear it usually points to a specific client sending a specific header. This entry explains how the negotiation works, the common causes and fixes, how 406 differs from similar codes, and why it matters when the client is a bot or crawler. For the more familiar missing-page error, see fix 404 errors.
How does content negotiation lead to a 406?
The client lists what it can accept, with optional weights called q-values. A type without a q-value has weight 1; weights run from 0 to 1, and 0 means "not acceptable". The server compares that list with the representations it has.
| Client | Typical Accept header | What a server that only has HTML does |
|---|---|---|
| Browser, page navigation | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 | Sends HTML (it matches the first entry; */* also matches) |
| Command-line tools such as curl and wget | */* | Sends HTML (anything matches) |
| API client | application/json | No JSON available: may send HTML as a default, or answer 406 |
| A client that asks only for XML | application/xml | No XML available: 406 if the server is strict |
The first two rows never produce a 406, because a wildcard (*/*) accepts anything. The last two show where it arises: a client asks for a narrow set and the server has nothing in that set.
A concrete request and response:
GET /report HTTP/1.1
Host: example.com
Accept: application/xml
HTTP/1.1 406 Not Acceptable
Content-Type: application/json
The Apache documentation describes the same decision as the last step of its negotiation algorithm: if no variant is acceptable to the browser, return a 406 with a body listing the available variants and set the Vary header. It also notes a language fallback: if a language match is impossible, Apache can ignore a subset (match en-GB against en documents) before giving up, and the ForceLanguagePriority directive can replace the error with the server's own choice of language.
What are the common causes of a 406, and how do you fix each?
| Cause | How to recognise it | Fix |
|---|---|---|
| Client asks for a type you do not serve | The failing request has a narrow Accept (for example application/xml); */* works | Serve the requested type, or return a default representation with a 200 |
| API version in the header | Accept carries a version string the server does not know | Check the documented version value; add the version if missing |
Accept-Language or Accept-Encoding mismatch | Request asks for a language or encoding you do not have | Add a fallback language or encoding, or ignore the header and send a default |
| Server configuration | Rewrite or negotiation rules (for example Apache MultiViews or type maps) pick no variant | Enable a fallback such as ForceLanguagePriority, or remove the rule |
| A rule that rejects some clients | Only certain user agents get 406; browsers do not | Compare the request headers and your server logs for the rule that fired |
| Proxy or CDN in front | The 406 appears at the edge | Cloudflare states it does not generate 406 itself but passes it through from the origin; fix the origin |
Reproduce before you change anything. With a command-line client you can send the exact header that fails and the same request with a wildcard:
curl -s -o /dev/null -w "%{http_code}\n" -H "Accept: application/xml" https://example.com/report
curl -s -o /dev/null -w "%{http_code}\n" -H "Accept: */*" https://example.com/report
If the first prints 406 and the second prints 200, the cause is negotiation. If both print 406, the cause is something else, such as a rule on the user agent or another header.
How is 406 different from 404, 415 and 400?
| Code | Meaning | Whose request is the problem | Example |
|---|---|---|---|
| 404 Not Found | The resource does not exist at that address | The URL | A deleted page |
| 406 Not Acceptable | The resource exists but not in an acceptable form | The response formats the client asked for | Accept: application/xml against an HTML-only page |
| 415 Unsupported Media Type | The server cannot read the format of the request body | The body the client sent | Posting XML to an endpoint that takes JSON |
| 400 Bad Request | The request is malformed | The syntax | A broken header |
A simple test: 406 is about what the client wants back; 415 is about what the client sent. For a soft case where a missing page returns 200, see soft 404, and for the server-side class of errors, HTTP 500 error.
Why does a 406 matter for bots and crawlers?
A crawler is a client that sends its own headers, often different from a browser's. If your server returns 406 to a crawler because of its Accept header, the crawler sees an error and not a page. Google's documentation treats 4xx status codes other than 429 as meaning the content does not exist: URLs that return them are not indexed, URLs already indexed are removed, any content received with them is ignored, and crawl frequency gradually drops. So a 406 served to a search crawler can quietly remove pages from search while every browser test passes.
That is the specific risk: a 406 that only some clients see is invisible to the person testing in a browser. Two checks catch it: repeat the failing request with the crawler's user agent and a narrow Accept, and look at status codes in server logs by user agent rather than only at page views. If the codes show 406 for one crawler, return the page with a 200 and a default representation instead of rejecting the header. Related reading on crawling: crawl errors and bot traffic.
How do you work out whether your own site returns 406?
Sample data: a week of server logs shows 5,000 fetches by one search crawler, with these status codes.
| Status | Fetches | Share |
|---|---|---|
| 200 or other below 400 | 4,650 | 93.0% |
| 404 | 200 | 4.0% |
| 5xx | 50 | 1.0% |
| 406 | 100 | 2.0% |
| Total | 5,000 | 100% |
If you only count 404s and 5xx you account for 250 failures, and the total of 350 non-success fetches leaves 100 unexplained: those are other 4xx codes, here 406. The signal is in the arithmetic: success rate (93.0%) is lower than 100% by more than the 404 and 5xx shares combined (5.0%). Ask which URLs return the extra 2.0% and which Accept header they carry. Fix those URLs first, since they are pages the crawler wanted and was refused.
How can you see 406 responses to crawlers in TapCub?
TapCub does not show the 406 status itself on a page, and it does not fix server configuration. It can help you notice that something is wrong with crawler fetches, if server records are connected.
- Get server-side records in. The page script cannot supply a status code. Send server events or import server logs (All-platform analytics › Data › Data import takes Nginx and Apache logs) so that crawler fetches have a status. With script collection only, you do not see status codes or response time.
- Open crawl health. In Monitoring › Crawl health, the cards show total fetches, success rate, distinct pages, 404s and 5xx. Success means a status below 400, so a 406 lowers the success rate even though it has no card of its own. After a log import, 4xx and 5xx split out.
- Compare the numbers. Use the arithmetic above: if the success rate is lower than 404s plus 5xx explain, the remainder is other 4xx codes. Open the engine's row to see the pages that crawler fetched most.
- Turn on the alert. Switch on Crawl anomaly in notifications to be told when one engine's fetches in 24 hours fall below 30% of its 7-day daily average.
- Then fix it in your server. The reproduction commands above show the cause; the change happens on your server or CDN, not in TapCub.
Sources
- IETF, RFC 9110: HTTP Semantics, section 15.5.7 — 406 Not Acceptable.
- MDN Web Docs, 406 Not Acceptable and Accept header — negotiation headers, q-values, typical Accept values, the 200-with-default alternative.
- Apache HTTP Server, Content Negotiation — the algorithm's 406 step, MultiViews and language fallback.
- Google Search Central, HTTP status codes, network and DNS errors — treatment of 4xx codes in indexing and crawling.
Was this explanation clear?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Customer Experience Consultant
Writes about live chat, visitor conversations, and self-service, sharing practical ways to make customer communication clearer and more effective.