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: CODEand a shorttext/plainbody that is the code.407also carriesProxy-Authenticate: Basic. - SOCKS5. One reply code by kind of cause:
0x03(network unreachable) forclass_unavailable,geo_unavailableandnode_unavailable;0x02(not allowed by ruleset) forforbidden_target,forbidden_portandblocked_domain;0x07(command not supported) forudp_unavailableandudp_unsupportedon UDP ASSOCIATE;0x01(general failure) for everything else. A wrong login or password is the standard RFC 1929 failure.
| Code | HTTP | SOCKS5 | Meaning |
|---|---|---|---|
invalid_credentials | 407 | authentication failure | Unknown login, wrong password or a deleted proxy user. The three look the same on purpose. |
user_not_found | 407 | authentication failure | The proxy user no longer exists. |
invalid_username | 400 | authentication failure | A modifier of the username is unknown, repeated or has a bad value. |
user_banned, account_banned | 403 | authentication failure | The proxy user or the account is blocked. Only shown with the right password. |
limit_reached | 403 | 0x01 | The traffic limit of the proxy user is used up. Other users keep working. |
package_required | 402 | 0x01 | The user is packages-only and has no active package of the class. |
insufficient_balance | 402 | 0x01 | No active package and not enough tokens for the next block. |
class_unavailable | 503 | 0x03 | The class has no usable route right now, for example premium without routes or no own node online. |
geo_unavailable | 503 | 0x03 | No route can serve the country, state, city or ASN you asked for. |
node_unavailable | 503 | 0x03 | The 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_unsupported | no answer | 0x07 | No route supports UDP, or the node is too old for it. |
routes_exhausted | 502 | 0x01 | Every route for a rotating request failed. Try again. |
session_upstream_failed | 502 | 0x01 | The exit of a sticky session failed. The IP is never swapped silently: use another session value. |
forbidden_target, forbidden_port, blocked_domain | 403 | 0x02 | A private or local address, a mail port, or a domain blocked by policy. |
connection_limit, rate_limited | 429 | 0x01 | Too many simultaneous or new connections. |
billing_unavailable | 503 | 0x01 | Billing could not be reached. No traffic is served without it; retry shortly. |
upstream | 503 | 0x01 | The 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" }.
| Status | Code | Meaning |
|---|---|---|
400 | VALIDATION_ERROR, invalid_geo, invalid_range, idempotency_key_required | The 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, 403 | API_KEY_INVALID, SCOPE_REQUIRED | The key is wrong, or lacks proxy:read or proxy:write. |
402 | insufficient_balance | The token balance does not cover the package. Nothing was bought. |
404 | proxy_user_not_found, not_found, package_not_found | It does not exist or belongs to another account. |
409 | limit_exceeded | The 21st proxy user, the 6th IP or the 51st whitelist port. |
409 | main_user_protected, duplicate_whitelist_ip, idempotency_conflict | The main user cannot be deleted; the IP is already allowed; the key was used for another package. |
Last updated on