Skip to content
proxycosts
Prices checked up to Oct 24, 2026

Proxy errors: who sent the code, and how to fix it

Every error you get through a proxy came from one of three places: the proxy, the site, or a service in front of the site such as Cloudflare. Each needs a different fix, and the fix for one never helps the others: a new IP cannot fix a wrong login, and a new login cannot fix a site that is down. This one command tells the proxy's answer from the site's:

curl -s -o /dev/null -x "http://USERNAME:[email protected]:8000" \
  -w "proxy %{http_connect} site %{http_code}\n" https://the-site-you-need.com/page

A code in the "proxy" place came from your proxy; with proxy 200, the code in the "site" place came from the site. It works for https:// addresses; why, and what each result means.

Every code, by who sends it

CodeWhat it means through a proxyWho sends it
407The proxy refused your loginYour proxy
403The site refused the request, or the proxy refused that siteThe site or your proxy
429Too many requests for the site's limit, or your plan'sThe site or your proxy
504The proxy, or the site's gateway, stopped waitingThe site or your proxy
200The request worked, but the page is a block or a captchaThe site
520The site's server sent Cloudflare a broken answerCloudflare, about the site's server
521The site's server refused CloudflareCloudflare, about the site's server
522Cloudflare could not reach the site's server in timeCloudflare, about the site's server
524The site's server took longer than 125 secondsCloudflare, about the site's server

A 407 always comes from the proxy, and the Cloudflare codes (520 to 524) always describe the site's own server. The other codes can come from either side: the command above tells you which.

Before you change anything

  1. Load the same page without the proxy. If it fails there too, the site is the problem and no proxy setting will fix it.
  2. Read the whole answer, not only the code. Some providers put the reason in the response body or a header. A 200 can also be a block page: check the content.
  3. Retry once, with a wait. Many errors through residential exits are one bad route. A second failure on a new IP is a pattern; a loop of instant retries spends traffic on a plan billed by the GB.

Set up and test a proxy

Each command was run once on Oct 19, 2026, against a test proxy; logins are placeholders and addresses documentation addresses. We do not measure any provider's speed or success rate. Prices for your own amount: compare residential plans.