FEATURE_REQUIRES_UPGRADE
This feature isn't included in your current plan.
HTTP status: 402
Why this happens
This feature isn't included in your current plan.
How to recover
Upgrade your plan in /billing to unlock the feature, or remove the call.
Branching on this code
TypeScript
import { ApiError } from "@firecase/sdk";
try {
await firecase.someCall();
} catch (e) {
if (e instanceof ApiError && e.code === "FEATURE_REQUIRES_UPGRADE") {
// recover here
}
throw e;
}