Skip to main content
This document lists all errors that the proxy can return, along with their HTTP status codes and descriptions.

Error Categories

1. Authentication Errors (HTTP 407)

Status: 407 Proxy Authentication Required These errors occur when your credentials (username/password) are incorrect or your username string is malformed.

Basic Authentication

Attribute Parsing

Feature/Session Errors

2. Bad Request Errors (HTTP 400)

Status: 400 Bad Request The request is malformed or contains invalid parameters.

Request Validation

Feature Configuration

3. Forbidden Errors (HTTP 403)

4. Conflict Errors (HTTP 409)

5. Payload Too Large (HTTP 413)

6. Internal Server Errors (HTTP 500)

7. Bad Gateway Errors (HTTP 502)

8. Service Unavailable (HTTP 503)

9. Gateway Timeout (HTTP 504)

10. SOCKS5 Specific Errors

Note: These errors are primarily for SOCKS5 protocol and may not apply to HTTP proxy clients.

Error Response Format

Errors are returned with custom headers to help you debug via code.
  • HTTP Status Code: Standard HTTP status (407, 400, 502, etc.)
  • Header: X-Anyip-Error containing the error code.
  • Body: Plain text description.

Example Response

Troubleshooting Guide

  1. 407 Errors: Check your username/password and ensure you aren’t using invalid flags (e.g., region_ without country_).
  2. 400 Errors: Check your flag syntax (e.g., sesstime_ must be a number).
  3. 502/503/504 Errors: These are usually temporary network issues or empty pools. Try rotating your IP or relaxing your targeting (e.g., remove city_ or asn_).
  4. 409/413 Errors: You have hit strict collision limits or account limits. Reset your session or rotate your IP.