//! Errors that can arise while *installing* a catalog (`cv:*`/`hf:*`)
//! model into the in-memory `state.config.models` view.
//!
//! The bool-returning predecessor (`install_catalog_model -> bool`)
//! collapsed every failure mode into "not installed", so a Civitai
//! outage and a typo'd model ID surfaced identically to the user. This
//! enum splits them along the three axes the server's `ApiError`
//! mapping cares about: transient (502), client-error (404), server bug
//! / malformed upstream payload (500).
//!
//! Lives in `mold-core` so both `mold-server` (HTTP path) and
//! `mold-cli` (local catalog bridge) can return the same shape; CLI
//! formats them as `anyhow::Error` user messages.
use Error;