ProxyZen

HTTP errors 400, 405, 406, 409, 413, 415, 422, 431, 451 explained

5 December 2026 · 4 min read
Reviewed by the ProxyZen team

What the less common HTTP 4xx errors mean — 400, 405, 406, 409, 413, 415, 422, 431, 451 and 499 — why they appear in scripts and through proxies, and how to fix each one.

Codes 4xx mean the server understood that something is wrong with the request: not the network, not the proxy, but what exactly you sent. The famous ones — 403, 407 and 429 — are covered in “HTTP errors 403, 429, 502, 522”. Here are the rest that scripts, scrapers and API clients run into.

How to see the code

In the browser: DevTools → Network → the request → Status. In the terminal:

$ curl -s -o /dev/null -w '%{http_code}\n' -X DELETE https://proxyzen.net/en
405

This is a real request to our site on 2 December 2026: a page that only accepts GET answered a DELETE with 405.

The codes

Code Name What it means How to fix
400 Bad Request The request is broken: invalid JSON, wrong encoding, a damaged cookie Validate the body; clear the site's cookies; check URL encoding
405 Method Not Allowed The address exists, but not for this method (POST instead of GET and so on) Use the method from the documentation; the Allow header lists the allowed ones
406 Not Acceptable The server cannot answer in the format from your Accept header Send Accept: */* or the type the API really returns
409 Conflict The request conflicts with the current state: the object already exists or was changed by someone else Fetch the fresh state and repeat; do not create duplicates
413 Content Too Large The body is bigger than the server allows Upload in parts or compress
415 Unsupported Media Type Wrong Content-Type, for example form data sent to a JSON API Set Content-Type: application/json and send real JSON
422 Unprocessable Content The format is correct, but the data fails validation: an empty required field, a bad e-mail Read the response body — it usually names the field
431 Request Header Fields Too Large Headers are too big — most often because of huge cookies Clear cookies for the site; do not send unnecessary headers
451 Unavailable For Legal Reasons The content is blocked in your country by law Only access from another country can change the answer
499 Client Closed Request Not an official code: nginx writes it to its log when the client hung up before the answer Increase the client timeout; the server is slow

We checked how these codes look to a client on httpbin.org: requests to /status/406, /status/409, /status/422 and /status/451 returned exactly 406, 409, 422 and 451. A real server adds an explanation in the response body — always print it in your script, it saves hours.

Where proxies come in

Most 4xx errors do not depend on the IP: a proxy will not fix broken JSON. But several cases are worth knowing:

  • 400 or 431 only through one browser profile. Usually accumulated cookies. In antidetect browsers each profile has its own cookies — clear the profile, not the proxy.
  • Oversized headers behind Cloudflare. When the site's own server refuses a too-large request, Cloudflare may show 520 instead of 431. On our site a single extra 16 KB header gave exactly that — see “Cloudflare errors 520–525, 1005, 1015 and 1020”.
  • 451 and geo-blocks. If the content is closed in one country, an IP in another country changes the answer. A proxy for the right country solves geo-dependent checks; respect the law of the country you are in.
  • 407 Proxy Authentication Required is the only 4xx that comes from the proxy itself: wrong login or password, or your IP is not in the allow list. See “The proxy requires a username and password”.

A quick way to debug

  1. Repeat the request with curl -v: you will see the method, headers and the full answer.
  2. Compare with the request from a browser (DevTools → Copy as cURL).
  3. Change one thing at a time: method → headers → body → IP.
  4. If the code changes only when the IP changes, the problem is blocking, not the request — check the IP in our IP checker.

To see what headers your client actually sends, open our HTTP headers tool — directly and through the proxy.

Try ProxyZen

Private IPv4 and IPv6 for 3 to 90 days, residential and mobile per GB. Instant delivery, HTTP(S), SOCKS5, UDP/QUIC.

Trustpilot Write a review