ServiceUnavailableError
An expected request failure whose message is intentionally safe to return in a public API. Authentication or admin authorization does not make an operational error safe to disclose.
Extends
Constructors
Constructor
new ServiceUnavailableError(message?, reason?): ServiceUnavailableError;Parameters
message?
string = 'Service temporarily unavailable'
reason?
| "identity_provider_unavailable"
| "stream_authorization_unavailable"
| "metering_unavailable"
| "product_not_configured"
| "sign_in_not_configured"
Overrides
Properties
[PUBLIC_API_ERROR]
readonly [PUBLIC_API_ERROR]: true = true;Inherited from
PublicApiError.[PUBLIC_API_ERROR]
code
readonly code:
| "INVALID_REQUEST"
| "UNAUTHENTICATED"
| "PAYMENT_REQUIRED"
| "FORBIDDEN"
| "NOT_FOUND"
| "CONFLICT"
| "PAYLOAD_TOO_LARGE"
| "RATE_LIMITED"
| "USAGE_LIMIT_EXHAUSTED"
| "SERVICE_UNAVAILABLE";Inherited from
param
readonly param: string | null;Inherited from
reason
readonly reason:
| ApiErrorReason
| null;Inherited from
requiredPermission
readonly requiredPermission:
| ResourceKindPermission
| null;The permission an admin API key lacks, with a FORBIDDEN code.
Inherited from
PublicApiError.requiredPermission
retryAfterSeconds
readonly retryAfterSeconds: number | null;How many whole seconds a client waits before retrying, with a RATE_LIMITED code. The JSON
envelope does not carry it: the server that answers sets the Retry-After header from it, for
example with apiErrorResponse(body, { retryAfterSeconds: error.retryAfterSeconds }).
Inherited from
PublicApiError.retryAfterSeconds
status
readonly status: PublicApiErrorStatus;