---
title: "406 Not Acceptable"
canonical: "https://lemwatch.com/http-status-codes/406"
category: "client-error"
last_verified: "2026-12-01"
source: "https://lemwatch.com"
---

# HTTP 406 Not Acceptable

**TL;DR** — 406 means the server will not answer in a form the request allows. For an API, fix the Accept header. For a website on shared hosting, a firewall rule is the usual cause, and the hosting provider can tell you which rule fired.

## What it means

HTTP 406 Not Acceptable is about content negotiation. The request's Accept, Accept-Language or Accept-Encoding headers list what the client is willing to receive, and the server has nothing that matches. In practice many 406 responses on ordinary websites do not come from content negotiation at all. They come from a web application firewall such as ModSecurity, which uses 406 to reject requests that match one of its rules.

## Common causes

- A ModSecurity or other firewall rule on the server rejecting the request
- An API client sending an Accept header for a format the API does not offer, such as application/xml
- A request with an unusual or missing User-Agent or Accept header, common in scripts and bots
- A form or URL containing text that looks like an attack to the firewall

## How to fix

- For an API: send an Accept header the API supports, usually application/json, or remove the header to accept anything
- For a website: ask the host for the ModSecurity log entry for the request, which names the rule that blocked it
- Have the host disable or adjust only that rule for the affected address, rather than turning the firewall off
- If it started after a plugin or theme update, disable the plugin and test again
- As a visitor, clear cookies for the site and try without browser extensions

## SEO impact

Google treats every 4xx code except 429 the same way: the content is taken not to exist. A page that keeps returning this code is dropped from the index, and a page that was never indexed will not be added.

## Monitoring tip

Firewall rules often block monitoring and crawlers before they block people. If a monitored page returns 406 while it loads in your browser, the firewall is refusing the checker's request and may be refusing search engines too.

**Related:** [403](https://lemwatch.com/http-status-codes/403.md), [415](https://lemwatch.com/http-status-codes/415.md), [400](https://lemwatch.com/http-status-codes/400.md)

_Canonical HTML page: https://lemwatch.com/http-status-codes/406_
