GatewayErrorResponseSchema
const GatewayErrorResponseSchema: ZodObject<{
error: ZodObject<{
code: ZodUnion<readonly [ZodUnion<(
| ZodEnum<{
invalid_json: ...;
parameter_invalid: ...;
provider_missing: ...;
provider_unsupported: ...;
unsupported_endpoint: ...;
}>
| ZodEnum<{
api_key_expired: ...;
api_key_invalid: ...;
api_key_revoked: ...;
credentials_malformed: ...;
credentials_missing: ...;
customer_access_revoked: ...;
customer_deleted: ...;
identity_provider_unmatched: ...;
identity_subject_deleted: ...;
identity_token_expired: ...;
identity_token_invalid: ...;
session_revoked: ...;
token_expired: ...;
token_invalid: ...;
}>
| ZodEnum<{
grant_expired: ...;
model_not_entitled: ...;
no_active_grant: ...;
}>
| ZodEnum<{
customer_suspended: ...;
mode_not_in_scope: ...;
permission_missing: ...;
project_not_in_scope: ...;
session_required: ...;
workspace_access_required: ...;
}>
| ZodNever
| ZodEnum<{
app_user_id_taken: ...;
checkout_in_progress: ...;
customer_access_revoked: ...;
customer_suspended: ...;
default_product_grant: ...;
default_product_in_use: ...;
grant_already_active: ...;
grant_not_cancelable: ...;
idempotency_key_reused: ...;
source_subscription_ambiguous: ...;
}>
| ZodEnum<{
too_many_concurrent_requests: ...;
}>
| ZodEnum<{
paid_credits_exhausted: ...;
provider_quota_exhausted: ...;
provider_spend_limit_exhausted: ...;
subscription_quota_exhausted: ...;
}>
| ZodEnum<{
identity_provider_unavailable: ...;
metering_unavailable: ...;
product_not_configured: ...;
sign_in_not_configured: ...;
stream_authorization_unavailable: ...;
}>)[]>, ZodEnum<{
conflict: "conflict";
forbidden: "forbidden";
internal_error: "internal_error";
invalid_request: "invalid_request";
not_found: "not_found";
payload_too_large: "payload_too_large";
payment_required: "payment_required";
rate_limited: "rate_limited";
service_unavailable: "service_unavailable";
unauthenticated: "unauthenticated";
usage_limit_exhausted: "usage_limit_exhausted";
}>]>;
message: ZodString;
param: ZodNullable<ZodString>;
reason: ZodOptional<ZodEnum<{
paid_credits_exhausted: "paid_credits_exhausted";
provider_quota_exhausted: "provider_quota_exhausted";
provider_spend_limit_exhausted: "provider_spend_limit_exhausted";
subscription_quota_exhausted: "subscription_quota_exhausted";
}>>;
type: ZodEnum<{
authentication_error: "authentication_error";
insufficient_quota: "insufficient_quota";
invalid_request_error: "invalid_request_error";
not_found_error: "not_found_error";
permission_error: "permission_error";
rate_limit_error: "rate_limit_error";
server_error: "server_error";
}>;
}, $strip>;
}, $strip>;Last updated on