CREDIT_GRANT_REVOKED
That credit grant has been revoked.
HTTP status: 402
Why this happens
A grant of credits was revoked (typically by an admin).
How to recover
Top up your balance in /billing, or contact support if this was unexpected.
Branching on this code
TypeScript
import { ApiError } from "@firecase/sdk";
try {
await firecase.someCall();
} catch (e) {
if (e instanceof ApiError && e.code === "CREDIT_GRANT_REVOKED") {
// recover here
}
throw e;
}