Error codes that tell you what to do
Every Plugsky error keeps the OpenAI-compatible error.message, error.type, and legacy error.code. New clients can read error.error_code, error.status, error.retry_after, error.request_id, and error.limit for a precise, actionable response.
Response shape
{
"error": {
"message": "You have 12 requests in flight, which is the Starter limit. Retry in 8 seconds.",
"type": "rate_limit_error",
"code": "429",
"param": null,
"error_code": "plan_concurrency_limit",
"status": 429,
"retry_after": 8,
"limit": {
"name": "concurrent_requests",
"limit": 12,
"used": 12,
"remaining": 0,
"reset_at": "2026-11-03T18:55:00Z"
},
"request_id": "7ef88ad36ec7d0f0",
"docs_url": "https://plugsky.com/docs/errors#plan_concurrency_limit"
}
}
Rate-limit headers
Success and error responses may include:
Retry-After · X-RateLimit-Limit · X-RateLimit-Remaining · X-RateLimit-Reset · X-Request-Id · X-Plugsky-Error-Code · X-Plugsky-Limit-Scope
Honor Retry-After when present. Otherwise use exponential backoff with jitter. Do not retry invalid_api_key, plan_required, or billing_error until the account is fixed.
Codes
| HTTP | error_code | What it means | What to do |
|---|---|---|---|
| 401 | invalid_api_key | Key missing, revoked, or malformed. | Create a new key in Dashboard → API Keys. |
| 403 | plan_required | Feature is subscriber-only (for example image generation). | Upgrade to Hobby or higher. |
| 403 | forbidden | Authenticated but not allowed. | Check scopes, IP allow-list, or account status. |
| 402 | billing_error | Subscription or payment needs attention. | Open Billing and resolve the invoice. |
| 404 | model_not_found | Model ID is not in the current catalog. | Use GET /v1/models. |
| 400 | invalid_request | Malformed JSON or missing field. | Fix the request body. |
| 400 | context_too_large | Prompt exceeds the selected model's context. | Shorten history or choose a larger-context model. |
| 400 | invalid_tool_schema | Tool/function schema rejected by the upstream. | Remove unsupported JSON Schema keywords. |
| 429 | plan_concurrency_limit | Too many in-flight requests for the plan. | Wait retry_after or upgrade. |
| 429 | plan_rpm_limit | Requests-per-minute limit reached. | Pace requests; honor Retry-After. |
| 429 | plan_tpm_limit | Tokens-per-minute limit reached. | Reduce prompt/output size or wait. |
| 429 | daily_token_cap | Daily token allowance used. | Wait for 00:00 UTC or upgrade. |
| 429 | daily_request_cap | Daily request allowance used. | Wait for 00:00 UTC or upgrade. |
| 429 | daily_rescue_budget_exceeded | Paid rescue allowance used for today. | Free lanes still run; paid fallback resets at 00:00 UTC. |
| 429 | fair_use_heavy_agent | Heavy-agent fair-use guardrail paused paid rescue. | Retry free lanes after retry_after; contact support. |
| 429 | idempotency_in_progress | Same Idempotency-Key is already running. | Wait briefly; the first result will be reused. |
| 429 | upstream_capacity | Provider capacity is saturated, not your plan limit. | Retry in a few seconds. |
| 503 | upstream_unavailable | All routing lanes failed. | Retry after Retry-After (usually 5 s). |
| 503 | upstream_timeout | Upstream timed out before answering. | Retry or use a smaller/faster request. |
| 504 | gateway_timeout | Gateway hard deadline exceeded. | Retry with a smaller request. |
| 500 | internal_error | Unexpected server error. | Contact support with request_id. |
Free vs paid
Free accounts use NVIDIA only. They never touch FreeLLMAPI or paid lanes. A free request normally sees 429 for plan/capacity limits or 503 if NVIDIA is fully unavailable. Free image generation is 403 plan_required.
Paid accounts retry NVIDIA backups, FreeLLM free lanes, then paid lanes. They normally see only the terminal 503 upstream_unavailable if every lane fails, or a specific 429 when their own plan or daily budget is exhausted. Raw provider 502s are not exposed.