Skip to Content

ReceivedApiErrorResponseSchema

const ReceivedApiErrorResponseSchema: ZodObject<{ error: ZodObject<{ code: 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: ZodOptional<ZodString>; reason: ZodOptional<ZodString>; requestId: ZodString; requiredPermission: ZodOptional<ZodString>; }, $strip>; success: ZodLiteral<false>; }, $strip>;

The envelope as a client reads it: the same fields, without the checks on the reason.

Last updated on