isPlanDenied property

bool get isPlanDenied

The key is valid but the account's subscription does not cover this call: the feature is not in the plan, a plan limit is exhausted, or a volume ceiling was hit. Gating is decided server-side from the subscription behind the key, so this is the signal to prompt an upgrade — without parsing error strings.

Implementation

bool get isPlanDenied => status == 402 || status == 403 || status == 429;