SUBSCRIPTION_LOCKED
Your subscription is in a state that doesn't allow that change.
HTTP status: 409
Why this happens
Your subscription is in a state that doesn't allow the requested change (e.g. canceled).
How to recover
Open the Stripe Customer Portal from /billing to resolve.
Branching on this code
TypeScript
import { ApiError } from "@firecase/sdk";
try {
await firecase.someCall();
} catch (e) {
if (e instanceof ApiError && e.code === "SUBSCRIPTION_LOCKED") {
// recover here
}
throw e;
}