In short
A 406 Not Acceptable error means the server cannot or will not return a version of the requested resource that matches the client’s accepted formats, languages or encodings. Website owners should check the failing request’s Accept headers and server logs first, then investigate content negotiation, ModSecurity or WAF rules, recent plugins and hosting configuration. (rfc-editor.org)
Key takeaways
- RFC 9110 defines 406 as a response-representation problem, not a general message that a website is offline. (rfc-editor.org)
- Comparing the same read-only request with broad and specific
Acceptvalues can reveal a content-negotiation mismatch. - A form submission that fails only with particular text or files is a useful WAF clue, but the server log or rule ID must confirm it.
- cPanel recommends disabling ModSecurity only while troubleshooting, not as a permanent fix. (docs.cpanel.net)
- HTTP 415 concerns the format of the request body, while HTTP 406 concerns the response representation the client will accept. (rfc-editor.org)
Table of contents
- What does a 406 Not Acceptable error actually mean?
- What should you check first?
- How can you tell which cause is responsible?
- How do you fix content negotiation and request headers?
- How do you fix a 406 caused by ModSecurity or a web application firewall?
- How do WordPress plugins or themes trigger a 406?
- How is a 406 different from 400, 403, 405, 409 and 415?
- How do you stop 406 errors coming back?
- What else do website owners ask about 406 errors?
- What should you do if the 406 error still will not clear?
Start with the exact URL and action that fails. A homepage that loads normally while a form submission, WordPress save, feed or API request returns 406 points to a request-specific rule or representation problem, not a complete hosting outage.
What does a 406 Not Acceptable error actually mean?

HTTP 406 means the server has no current response representation that satisfies the client’s stated preferences, and the server will not supply a default. The HTTP Semantics standard, RFC 9110, published in June 2022, places 406 in the 4xx client-error class. (rfc-editor.org)
A client can express response preferences through headers such as Accept, Accept-Language and Accept-Encoding. An API might request application/json, for example, while the application route can return only HTML.
Do not confuse Accept with Content-Type. Accept describes the response formats the client can receive. Content-Type describes the format of content being sent in the request or response.
There is an important hosting complication. ModSecurity rules can block a transaction and set the HTTP status used for that block, so a hosting platform may display 406 even when the underlying event is a security-rule match rather than standards-based content negotiation. The official ModSecurity actions reference documents this configurable status behaviour. (modsecurity.org)
A real 406 diagnosis starts by separating response negotiation from every other reason a server or security layer might reject a request.
Performance you can feel, backed by clients who depend on it. Read how our support and uptime create long‑term customer success.Power Your Business with Better Hosting
What should you check first?

Check one reproducible failing request before changing plugins, .htaccess or firewall settings. Record the URL, HTTP method, time, client, action and response body so the event can be matched against application, web server and WAF logs.
- Reproduce the exact action. Note whether the failure occurs while opening a page, saving content, submitting a form, uploading a file, fetching a feed or calling an API.
- Inspect the request and response. In the browser’s Network panel, record the method, status, response body,
Acceptheaders,Content-Typeand any request or trace ID. - Compare clients. Test whether the same URL works in another browser, a private session or an API client. If it works in one client but fails in another, compare the headers rather than clearing everything at once.
- Match the time to logs. Check application logs, the web server error log and WAF records for the same timestamp and path.
- Reverse one recent change. If the problem began after a plugin, proxy, routing or hosting change, undo one change and retest before touching the next layer.
For a read-only URL, curl can test response negotiation without browser extensions changing the request:
“bash curl -v -H "Accept: */*" https://example.com/path curl -v -H "Accept: application/json" https://example.com/path curl -v -H "Accept: application/xml" https://example.com/path “
The official curl command-line documentation explains the verbose and custom-header options. Redact cookies, Authorization values, API keys and session tokens before sharing the output with support. (curl.se)
Do not use a troubleshooting request to repeat a payment, delete data or resubmit a live order. Use a safe endpoint or a staging environment when the method changes server data.
The fastest path is to reproduce one failing request, capture its headers, and match its timestamp to the right server log.
How can you tell which cause is responsible?
The failure pattern usually narrows the problem to the browser, application, web server, proxy or security layer. Treat each pattern as a lead to verify, not as proof by itself.
| What you observe | Likely layer | Evidence to collect | First safe action |
|---|---|---|---|
| One browser fails, but another works | Extension, proxy or altered request headers | Compare Accept, language and encoding headers | Disable one extension or proxy and retest |
| An API fails only for one requested format | Application content negotiation | Supported response formats and route configuration | Request a supported format or add the missing representation |
| A form or save action fails only with certain text or files | WAF or validation rule | WAF rule ID, audit entry and matching payload field | Ask for a narrow rule review or exclusion |
| An extensionless Apache URL fails while a filename works | MultiViews or type-map negotiation | Apache configuration and available file variants | Review negotiation settings for the affected directory |
| The error began after a plugin or theme update | Application route, payload or header change | Change log, plugin logs and a staging reproduction | Roll back or isolate the changed component |
| Every client fails after a proxy or server change | Proxy, origin or server configuration | Origin response, proxy logs and configuration diff | Revert one infrastructure change and retest |
Apache’s content-negotiation documentation confirms that MultiViews can choose between file variants and can return 406 when no variant is acceptable. cPanel’s documentation also separates domain-level ModSecurity controls from the server administrator’s detailed hit and rule records. (httpd.apache.org)
A payload-sensitive failure is particularly useful. If deleting one phrase from a form makes the request work, a WAF match becomes more likely, but the rule log is still needed before an exception is created.
The failure pattern usually identifies the responsible layer before any configuration is changed.
Host your website with our 5-star rated, cPanel website hosting plans.
Super fast servers, with security included and hosted in your choice of Australian Data Center.
View cPanel Plans
How do you fix content negotiation and request headers?
Fix a content-negotiation 406 by aligning the client’s accepted response formats with representations the application or server can produce. The correction may belong in the client request, the application route, Apache negotiation settings or an intermediary that is rewriting headers.
If an API supports JSON and HTML but the client sends only Accept: application/xml, the practical choices are:
- change the client to request JSON or HTML;
- add a valid XML response representation;
- allow a sensible default representation when the client can use it; or
- return 406 with a useful response that identifies the available formats.
RFC 9110 permits a server either to honour restrictive negotiation headers with 406 or to disregard them and send a default representation. The right behaviour depends on whether the client can safely process that default. (rfc-editor.org)
Check Accept-Language when only translated or region-specific pages fail. Check Accept-Encoding when a proxy, compression module or unusual client is involved. Compare the successful and failed requests rather than assuming every Accept header is relevant.
On Apache-compatible hosting, review MultiViews, type maps, language priorities and MIME mappings. If MultiViews is not intentionally used and the host permits the directive, a controlled test for the affected directory may use:
“apache Options -MultiViews “
Back up .htaccess first and revert the change if it causes a 500 response or breaks extensionless routing. Apache documents MultiViews as a per-directory content-negotiation option, so disabling it without checking the site’s URL design can create a different problem. (httpd.apache.org)
A content-negotiation fix must align the client’s accepted response formats with representations the server or application can actually return.
How do you fix a 406 caused by ModSecurity or a web application firewall?

Confirm the matching security event, identify the rule and make the narrowest safe adjustment. A web application firewall should not be disabled across an entire site merely because one legitimate request triggered a false positive.
cPanel’s ModSecurity interface allows domain-level switching but warns that protection should be disabled only while troubleshooting. For server administrators, the ModSecurity Tools documentation explains that the Hits List shows the most relevant hit and that complete event history must be checked in the logs. The domain-level cPanel documentation also notes that disabling ModSecurity removes all ModSecurity rules from that domain. (docs.cpanel.net)
Collect these details for the host or server administrator:
- the exact local time and time zone;
- the URL and HTTP method;
- the action that triggered the response;
- the client IP address, if known;
- the request ID or trace ID;
- the WAF rule ID and message;
- the specific form field, file or request fragment involved; and
- any recent application or rule-set change.
The preferred fix is usually a rule-level or target-level exclusion limited to the affected path, parameter or verified transaction pattern. The OWASP Core Rule Set is a generic attack-detection rule set intended to protect many applications, which means application-specific tuning may still be required. (owasp.org)
After a change, retest the legitimate request and confirm that obviously malicious variants remain blocked. If protection was temporarily disabled, turn it back on immediately after collecting the required evidence.
A WAF-related 406 should be fixed with evidence and the narrowest workable exception, not by switching off protection for the whole site.
How do WordPress plugins or themes trigger a 406?
A WordPress plugin or theme can alter routes, request payloads, response formats or headers, exposing an application mismatch or triggering a security rule. The changed component is a lead to test methodically, not proof that the plugin or theme is defective.
The official WordPress developer troubleshooting guidance recommends deactivating plugins to test for conflicts, reactivating them one at a time, switching temporarily to a default theme and contacting the host when server-side security or firewall rules may be blocking requests. (developer.wordpress.org)
Before testing:
- create a current backup or use staging;
- record the versions changed before the error appeared;
- test the exact action after each single change;
- include must-use plugins and server-level caching in the investigation; and
- restore the original configuration if the test does not change the result.
If WordPress can display pages but returns 406 only when saving a long post, uploading a file or submitting a form, check the WAF logs alongside plugin isolation. If an API route returns 406 consistently for one Accept value, check the route’s supported response formats first.
A recent WordPress change is a lead to test methodically, not proof that the changed plugin is faulty.
Register your new domain name at competitive market prices including free domain add-ons like privacy, DNS Hosting, Custom Nameservers and Forwarding.
Always the best price and no nasty renewal price hikes.
Register A Domain Name
How is a 406 different from 400, 403, 405, 409 and 415?
HTTP 406 concerns the representation the server would return, while nearby 4xx codes describe different request, permission, method, state or request-body problems. Reading the status according to its defined meaning prevents wasted changes to unrelated parts of the hosting stack.
| Code | Defined meaning | Check first |
|---|---|---|
| 400 Bad Request | The request is malformed or cannot be processed as sent | Request syntax, headers, cookies and body structure |
| 403 Forbidden | The server understood the request but refuses it | Permissions, access rules, authentication context and WAF logs |
| 405 Method Not Allowed | The resource does not support the request method | Route configuration and the response’s Allow header |
| 406 Not Acceptable | No available response representation satisfies the client’s preferences | Accept headers, response formats and negotiation rules |
| http 409 conflict | The request conflicts with the resource’s current state | Version, duplicate, locking or state-transition logic |
| 415 Unsupported Media Type | The request body format is not supported for that method and resource | Request Content-Type, encoding and parser support |
These definitions come from RFC 9110. A WAF or application can still choose a status imperfectly, which is why the response body and logs matter alongside the number. (rfc-editor.org)
HTTP 406 is about an unacceptable response representation, while nearby 4xx codes describe different request, permission, method, state or body-format problems.
How do you stop 406 errors coming back?
Prevent recurring 406 errors by making supported response formats explicit and keeping enough evidence to compare successful and failed requests. Prevention is mostly configuration discipline, automated tests and controlled security tuning.
- Document the media types, languages and encodings supported by each important API or application route.
- Add tests for common
Acceptvalues and intentional rejection cases. - Return a useful error body that identifies supported response formats when 406 is deliberate.
- Preserve request IDs across the proxy, web server and application logs.
- Review WAF hits after major plugin, theme, framework or rule-set updates.
- Keep a known-good request that can be repeated safely after deployments.
- Change one layer at a time and record the result.
- Use the correct
Varyresponse headers when caches store negotiated representations.
Apache documents the role of Vary in negotiated responses, while cPanel provides separate domain controls and server-level rule records. Together, those controls make repeatable testing and evidence-based tuning more useful than broad configuration changes. (httpd.apache.org)
Prevention comes from explicit response formats, repeatable tests, change records and log review after deployments.
Experience Microsoft 365 Business Standard for free for 30 days.
Up to 25 users with full access to email, OneDrive and Teams. Includes full versions of desktop apps of Outlook, Word, Excel, PowerPoint and more.
Try Microsoft 365
What else do website owners ask about 406 errors?
The useful answer depends on which layer generated the response. These short answers cover the standard meaning and the most common hosted-website investigation paths.
What does 406 mean?
A 406 Not Acceptable response means the server could not find a current representation that matched the client’s accepted formats, languages or encodings, and would not send a default. On hosted websites, a WAF or application may also use 406 as its chosen block response, so logs are needed to identify the layer. (rfc-editor.org)
What are the 400 HTTP error codes?
HTTP 400 to 499 responses are the 4xx class, which describes conditions classified as client errors. They include malformed requests, authentication and permission failures, missing resources, unsupported methods, unacceptable response representations, state conflicts and unsupported request-body formats. The precise meaning depends on the individual status code. (rfc-editor.org)
Can ModSecurity cause a 406 error?
Yes. ModSecurity can block a request and use a configured HTTP status, while cPanel exposes domain controls and server-side hit records for troubleshooting. A form or save action that fails only with particular text or upload content is a useful clue, but the matching rule ID or audit log is the evidence. (modsecurity.org)
Can a WordPress plugin cause a 406 error?
Yes. A plugin or theme can change routes, response formats, headers or form payloads, which may expose an application mismatch or trigger a WAF rule. Test on staging or after a backup, deactivate plugins methodically, switch temporarily to a default theme, and retest after each single change. (developer.wordpress.org)
The useful question is not only what 406 means, but which layer returned it for this exact request.
What should you do if the 406 error still will not clear?
Send the hosting provider or developer one reproducible request with enough context to find the matching event. A screenshot of the error page alone rarely contains the request headers, rule ID or application message needed to identify the cause.
Include the timestamp and time zone, URL, method, action, redacted request headers, response body, client IP, request ID and recent changes. State whether the same request works from another browser, network or API client.
If the existing platform does not provide useful logs or hosting support, compare current cPanel Website Hosting plans with ModSecurity, daily remote backups and Australian support. (uptimewebhosting.com.au)
Give support one reproducible request with a timestamp and headers, and the 406 becomes a traceable event rather than a vague error page.






