Skip to Content
Proxy access

Errors

What the proxy answers to a refused connection, by HTTP status and SOCKS5 reply, and the errors of the account API.

A refused connection gets an answer with the code and nothing else: no account, route or provider detail.

  • HTTP proxy. The status below, the header x-rh-proxy-error: CODE and a short text/plain body that is the code. 407 also carries Proxy-Authenticate: Basic.
  • SOCKS5. One reply code by kind of cause: 0x03 (network unreachable) for class_unavailable, geo_unavailable and node_unavailable; 0x02 (not allowed by ruleset) for forbidden_target, forbidden_port and blocked_domain; 0x07 (command not supported) for udp_unavailable and udp_unsupported on UDP ASSOCIATE; 0x01 (general failure) for everything else. A wrong login or password is the standard RFC 1929 failure.
CodeHTTPSOCKS5Meaning
invalid_credentials407authentication failureUnknown login, wrong password or a deleted proxy user. The three look the same on purpose.
user_not_found407authentication failureThe proxy user no longer exists.
invalid_username400authentication failureA modifier of the username is unknown, repeated or has a bad value.
user_banned, account_banned403authentication failureThe proxy user or the account is blocked. Only shown with the right password.
limit_reached4030x01The traffic limit of the proxy user is used up. Other users keep working.
package_required4020x01The user is packages-only and has no active package of the class.
insufficient_balance4020x01No active package and not enough tokens for the next block.
class_unavailable5030x03The class has no usable route right now, for example premium without routes or no own node online.
geo_unavailable5030x03No route can serve the country, state, city or ASN you asked for.
node_unavailable5030x03The own node you chose with node-ID (or a whitelist port is pinned to) is offline, deleted, not yours or does not match the country. No other node is used instead.
udp_unavailable, udp_unsupportedno answer0x07No route supports UDP, or the node is too old for it.
routes_exhausted5020x01Every route for a rotating request failed. Try again.
session_upstream_failed5020x01The exit of a sticky session failed. The IP is never swapped silently: use another session value.
forbidden_target, forbidden_port, blocked_domain4030x02A private or local address, a mail port, or a domain blocked by policy.
connection_limit, rate_limited4290x01Too many simultaneous or new connections.
billing_unavailable5030x01Billing could not be reached. No traffic is served without it; retry shortly.
upstream5030x01The route could not be looked up. Retry shortly.

A whitelist port refuses a client from an IP that is not allowed, or a port that is not in use, by closing the connection without an answer.

Account API errors

The API of proxy access answers errors as { "error", "code", "message", "requestId" }.

StatusCodeMeaning
400VALIDATION_ERROR, invalid_geo, invalid_range, idempotency_key_requiredThe request is malformed, names a place the reference does not know, asks for a range over 90 days or a purchase without Idempotency-Key.
401, 403API_KEY_INVALID, SCOPE_REQUIREDThe key is wrong, or lacks proxy:read or proxy:write.
402insufficient_balanceThe token balance does not cover the package. Nothing was bought.
404proxy_user_not_found, not_found, package_not_foundIt does not exist or belongs to another account.
409limit_exceededThe 21st proxy user, the 6th IP or the 51st whitelist port.
409main_user_protected, duplicate_whitelist_ip, idempotency_conflictThe main user cannot be deleted; the IP is already allowed; the key was used for another package.

Last updated on

On this page