Documentation
    Preparing search index...
    WatcherClientErrorCode:
        | "invalid_options"
        | "invalid_request"
        | "invalid_response"
        | "timeout"
        | "network_error"

    Codes the SDK assigns itself. Errors from a non-2xx response carry the server's code instead: an ApiErrorCode (core API_ERROR_CODES) from a 0.20.0+ service, else body.code, else body.error, else http_<status>.

    • invalid_options: createWatcherClient options are invalid.
    • invalid_request: the request body failed the core request schema; nothing was sent.
    • invalid_response: a 2xx response was not JSON or failed the core response schema.
    • timeout: no response within timeoutMs.
    • network_error: fetch rejected (connection refused, DNS failure, …).