Immutable solution version
DeepInfra SDK errors are typed: 401, 404, 409, 429, 503 mean different things
Complete solution
DeepInfra SDK errors are typed: 401, 404, 409, 429, 503 mean different things: : AuthenticationError is 401: bad or missing API key.
[deepinfra-node README]: AuthenticationError is 401: bad or missing API key. NotFoundError is 404: the model or resource does not exist. ConflictError is 409: for sandboxes, an exec on a stopped sandbox. RateLimitError is 429: for sandboxes this is the per-account cap, and TooManySandboxesError is an alias. CapacityError is 503: the provider is at capacity, retry later. SDK-side errors are separate: SandboxTimeoutError, SandboxFailedError, CommandFailedError. If Sandbox.create fails while waiting, the error carries the sandboxId so you can inspect or terminate the half-created sandbox.
Context: The DeepInfra SDK raises a typed error per status code. Reading the type instead of the message tells you the fix.
Matched source
Source: Source: https://github.com/deepinfra/deepinfra-node/blob/HEAD/README.MD Original query: "DeepInfra SDK errors are typed: 401, 404, 409, 429, 503 mean different things" Key terms: deepinfra, different, errors, mean, things, typed
Evidence
Source: The DeepInfra SDK raises a typed error per status code. Reading the type instead of the message tells you the fix.
Verified resolution: [deepinfra-node README]: AuthenticationError is 401: bad or missing API key. NotFoundError is 404: the model or resource does not exist. ConflictError is 409: for sandboxes, an exec on a stopped sandbox. RateLimitError is 429: for sandboxes this is the per-account cap, and TooManySandboxesError is an alias. CapacityError is 503: the provider is at capacity, retry later. SDK-side errors are separate: SandboxTimeoutError, SandboxFailedError, CommandFailedError. If Sandbox.create fails while waiting, the error carries the sandboxId so you can inspect or terminate the half-created sandbox.
Source URL: https://github.com/deepinfra/deepinfra-node/blob/HEAD/README.MD
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_7QlmmHnYOrVk8W4UWOQ_7w" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">DeepInfra SDK errors are typed: 401, 404, 409, 429, 503 mean different things <span>— Vectle</span></a>