coldbydefault-portfolio
    Preparing search index...

    Type Alias ChatBotErrorCode

    ChatBotErrorCode:
        | "RATE_LIMIT_EXCEEDED"
        | "QUOTA_EXCEEDED"
        | "INVALID_INPUT"
        | "SESSION_LIMIT_REACHED"
        | "SERVICE_UNAVAILABLE"
        | "TIMEOUT"

    Failures are reported to the client as a bare code, never as prose: useChat surfaces a non-2xx body verbatim as error.message, so anything human-readable put here would bypass i18n and could leak provider internals. The client maps these onto translated strings.