ProxyZen

Errors 403, 407, 429, 502, 503 and 522: what they mean and how to fix them

28 November 2026 · 3 min read

A practical guide to common HTTP errors — 403 Forbidden, 407, 429 Too Many Requests, 502, 503, 504, 522 — their causes and fixes, including when you work through proxies.

An HTTP status code is the server's short answer to your request. Codes starting with 4 mean the problem is on the client side (you, your browser, your IP), codes starting with 5 mean the server or something in front of it failed.

403 Forbidden

The server understood the request but refuses to serve it.

Causes: access to the page is closed; the website blocks your country or IP; an anti-bot system (Cloudflare and others) does not trust the request; no permissions on the server (if it is your website).

What to do:

  • check that the address is correct and you are logged in;
  • try from another IP: if 403 disappears, your IP or its subnet is blocked;
  • for scraping: send normal browser headers, keep cookies, slow down;
  • for strict websites, use residential or mobile proxies.

407 Proxy Authentication Required

The proxy requires a username and password and did not get them. Check the login, password and format. Details: “The proxy requires a username and password”.

429 Too Many Requests

You sent too many requests in a short time. The server may include a Retry-After header with the number of seconds to wait.

What to do: add pauses, limit parallel requests, spread the load across several IPs. See “Rotating vs sticky IP” and “Proxies for web scraping”.

502 Bad Gateway

An intermediate server (a gateway, reverse proxy or CDN) got an invalid answer from the main server. Usually the website itself is overloaded or restarting. Wait and reload. If you see 502 only through your proxy, check the proxy with the proxy checker.

503 Service Unavailable

The server is temporarily overloaded or under maintenance. Sometimes anti-bot systems also return 503 with a check page. Try again later.

504 Gateway Timeout

The gateway did not wait for an answer from the main server. The cause is a slow server or a network problem between them.

522 Connection timed out (Cloudflare)

Cloudflare could not connect to the website's server. This is almost always a problem of the website: the server is down, overloaded or blocks Cloudflare's addresses. A visitor can only wait. If it is your website, check that the server is running and that its firewall allows Cloudflare IP ranges.

Quick table

Code Whose side First step
403 Client / access rules Another IP, check access
407 Proxy Check login and password
429 Client (too fast) Slow down, more IPs
502 / 504 Server / gateway Wait, reload
503 Server Try later
522 Website behind Cloudflare Wait; owner checks the server

Summary

4xx — change something on your side (access, IP, request rate); 5xx — usually wait for the website. ProxyZen proxies: private IPv4 from $0.60, residential from $1.59 per GB. Buy proxies.

Try ProxyZen

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

Trustpilot Write a review