Error codes
42900 rate_limited
Too many requests
42900 — rate_limited
Back off, then retry. Not terminal.
At a glance — HTTP 429 · terminal: no · SDK FluxyRateLimitError.
What to do
- Wait the server's hint — REST responses carry
retryAfter, or theRetry-Afterheader — then retry. - In the SDK, catch
FluxyRateLimitErrorand waitretryAfterMsbefore the next call. - Batch or throttle bulk sends instead of retrying in a tight loop.
import { FluxyRateLimitError } from "@fluxy-chat/sdk";
try {
await sendBatch();
} catch (err) {
if (err instanceof FluxyRateLimitError) {
await new Promise((resolve) => setTimeout(resolve, err.retryAfterMs));
// retry once, or hand the delay back to your queue
}
}