DocumentationAPI v1
API Reference • Diagnostics & Fault Handling

Error Codes

Complete reference for error codes returned by /api/v1/createTask, /api/v1/tasks:solve, /api/v1/getTaskResult, and account management endpoints — including HTTP status codes, industry-standard compatibility aliases, and automated retry guidance.

Error Response Format

When a request is rejected at validation/authentication or fails during task execution, ByeCap returns a deterministic JSON error payload with a machine-readable code / errorCode and human-readable message.

Synchronous / Gateway Rejection (4xx / 5xx)
{
  "status": "failed",
  "error": {
    "code": "INSUFFICIENT_BALANCE",
    "message": "insufficient account balance"
  }
}
Async Polling Task Failure (/getTaskResult)
{
  "errorId": 1,
  "errorCode": "TASK_TIMEOUT",
  "errorDescription": "Task execution timed out",
  "taskId": "76f8a21c-9b3e-4e11-a210-9c881c2e77a1",
  "status": "failed"
}

Complete Error Code Directory

Zero-Charge Failure Guarantee: Every error code listed below incurs $0.00 cost. If balance or package quota was pre-reserved at /createTask and a task subsequently fails or times out, the atomic billing ledger refunds the full amount automatically.
Error Code / AliasHTTPRetry StrategyCause & Recommended Fix
UNAUTHORIZED
Alias: ERROR_KEY_DOES_NOT_EXIST
401Fix request
Missing clientKey field in the JSON request body or Authorization header.
Fix: Include a valid "clientKey" string in every /createTask, /tasks:solve, and /getTaskResult call.
KEY_NOT_FOUND
Alias: ERROR_KEY_DOES_NOT_EXIST
404Fix request
The provided clientKey does not match any active API key in ByeCap.
Fix: Copy your active key from Dashboard → API Keys and verify there is no trailing whitespace.
API_KEY_INACTIVE
Alias: ERROR_KEY_DENIED_ACCESS
403Fix request
The API key has been manually paused or deactivated.
Fix: Re-enable the key in Dashboard → API Keys or rotate to a new active sub-key.
API_KEY_EXPIRED403Fix request
The API key has passed its configured expiration timestamp.
Fix: Extend the key expiration date or mint a new key in the console.
IP_NOT_WHITELISTED
Alias: ERROR_IP_NOT_ALLOWED
403Fix request
Caller IP address is not included in this API key’s allowed_ips CIDR allowlist.
Fix: Add your server egress IP or CIDR subnet to the key allowlist in Dashboard → API Keys.
API_KEY_MODULE_NOT_ALLOWED403Fix request
This sub-key is restricted to specific captcha modules and cannot call the requested task type.
Fix: Update the key’s Allowed Modules list or switch to an unrestricted master key.
ACCOUNT_INACTIVE
Alias: ERROR_ACCOUNT_SUSPENDED
403Fix request
The owner account has been suspended due to Terms of Service or abuse violations.
Fix: Open a ticket or contact support@byecap.org to review account status.
INSUFFICIENT_BALANCE
Alias: ERROR_ZERO_BALANCE
400Top-up / Cap
Available USD wallet balance is lower than the unit price of the requested captcha task.
Fix: Top up via VietQR, USDT, or Card in Dashboard → Billing & Top-Up before retrying.
API_KEY_SPEND_LIMIT_EXCEEDED403Top-up / Cap
The API key reached its configured daily, monthly, or lifetime USD spending cap.
Fix: Raise or reset the spend cap for this key in Dashboard → API Keys.
USER_PACKAGE_EXPIRED400Top-up / Cap
The quota package bound to this package API key has passed its validity window.
Fix: Renew the quota package in Dashboard → Packages or switch to a pay-as-you-go wallet key.
USER_PACKAGE_EXHAUSTED400Top-up / Cap
All solve credits in the active quota package have been consumed.
Fix: Purchase a new quota package or fall back to a standard USD balance API key.
PACKAGE_MODULE_MISMATCH400Fix request
A package-bound API key was used for a captcha module not covered by that plan.
Fix: Use the package key only on its designated modules, or use a wallet API key for other types.
VALIDATION_FAILED
Alias: ERROR_BAD_PARAMETERS
400Fix request
Missing or invalid required task parameters (such as websiteURL, websiteKey, or Base64 body).
Fix: Verify your JSON payload against the specific solver schema in Captcha Token or Recognition docs.
UNSUPPORTED_TASK_TYPE
Alias: ERROR_TASK_NOT_SUPPORTED
400Fix request
The task.type or module string is unrecognized by the task router.
Fix: Check exact task type casing (e.g. TurnstileTaskProxyless, RecaptchaV2TaskProxyless, ImageToTextTask).
MODULE_DISABLED400Retry w/ backoff
The requested solver module is temporarily paused for model upgrade or scheduled maintenance.
Fix: Check Service Changelog or retry after maintenance completes.
PAYLOAD_TOO_LARGE
Alias: ERROR_IMAGE_TYPE_NOT_SUPPORTED
413Fix request
Request body exceeds the maximum allowed payload size (e.g. uncompressed oversized Base64 image).
Fix: Strip data:image/*;base64, prefixes and compress images to JPEG/PNG under 2 MB.
ASSET_BLOCKED
Alias: ERROR_DOMAIN_NOT_ALLOWED
403Fix request
Target websiteURL or IP matches ByeCap’s global compliance blacklist (such as .gov, .edu, or restricted portals).
Fix: Do not retry against restricted government, military, or educational domains.
RATE_LIMIT_EXCEEDED
Alias: ERROR_TOO_MUCH_REQUESTS
429Retry w/ backoff
Per-API-key or per-IP request rate exceeded burst allowance.
Fix: Apply exponential backoff (250ms → 500ms → 1s) or prefer /api/v1/tasks:solve to eliminate polling traffic.
NO_SLOT_AVAILABLE
Alias: ERROR_NO_SLOT_AVAILABLE
503Retry w/ backoff
Concurrency capacity for this task type is momentarily saturated.
Fix: Wait 500ms–1500ms and retry; reserved funds are never deducted when queueing is rejected.
TASK_TIMEOUT
Alias: ERROR_CAPTCHA_UNSOLVABLE
504Retry w/ backoff
The challenge exceeded the maximum execution window before a verified token was produced.
Fix: 100% auto-refunded to wallet/quota. Retry with a fresh site challenge or cleaner proxy.
WORKER_DISCONNECTED502Retry w/ backoff
The task was interrupted mid-execution due to a transient backend restart.
Fix: 100% auto-refunded automatically. Safe to retry immediately.
TASK_SOLVE_FAILED
Alias: ERROR_CAPTCHA_UNSOLVABLE
400Retry w/ backoff
Target anti-bot rejected challenge parameters, expired challenge token, or dead user proxy.
Fix: 100% auto-refunded. Verify websiteKey/action/cdata match the live page and retry.
TASK_ALREADY_REPORTED409Fix request
POST /reportIncorrect was already submitted for this taskId.
Fix: Track reported taskIds client-side so each rejected token is reported at most once.