Documentation
    Preparing search index...

    Variable apiErrorBodySchemaConst

    apiErrorBodySchema: ZodObject<
        {
            code: ZodEnum<
                {
                    embedding_unavailable: "embedding_unavailable";
                    internal_error: "internal_error";
                    invalid_request: "invalid_request";
                    not_available: "not_available";
                    not_found: "not_found";
                    path_not_watched: "path_not_watched";
                    pipeline_error: "pipeline_error";
                    scan_in_progress: "scan_in_progress";
                    source_not_found: "source_not_found";
                    source_not_indexed: "source_not_indexed";
                    source_unavailable: "source_unavailable";
                    unauthorized: "unauthorized";
                    unsupported_content_type: "unsupported_content_type";
                },
            >;
            details: ZodOptional<ZodUnknown>;
            error: ZodString;
            issueType: ZodOptional<
                ZodEnum<
                    {
                        embedding_error: "embedding_error";
                        extraction_error: "extraction_error";
                        interpolation_error: "interpolation_error";
                        match_failed: "match_failed";
                        no_content: "no_content";
                        rule_missing: "rule_missing";
                        source_unavailable: "source_unavailable";
                        type_collision: "type_collision";
                        unsupported_content_type: "unsupported_content_type";
                        upsert_error: "upsert_error";
                    },
                >,
            >;
            message: ZodOptional<ZodString>;
        },
        $strip,
    > = ...

    Body of every non-2xx watcher response (0.20.0+): the version-independent apiErrorResponseSchema (error, message, details) extended with code and issueType. error is the human-readable text earlier versions sent, kept unchanged for backward compatibility; branch on code, never on error. Endpoints may add further fields (e.g. issues on POST /config/apply).