Skip to content

Type Alias: WebSearchErrorCode

@kortexya/reasoninglayer


@kortexya/reasoninglayer / WebSearchErrorCode

WebSearchErrorCode = "web_search_not_configured" | "web_search_providers_failed"

Defined in: src/types/ingestion.ts:2314

The code of a coded error body of POST /api/v1/web/search.

  • 'web_search_not_configured' (HTTP 503): no search provider is registered. It is permanent until an operator acts; the message is webSearch.unavailableReason of the capabilities.
  • 'web_search_providers_failed' (HTTP 502): every registered provider failed this search. The next call can succeed.

Read it with errorBodyCode.

const code: WebSearchErrorCode = 'web_search_not_configured';