Companion

object Companion

Functions

Link copied to clipboard
fun fromHttp(status: Int, detail: String? = null): SolidError

Maps an HTTP status (and optional server-provided detail) to the matching error — the single place status codes are classified.

Link copied to clipboard

Maps a thrown throwable to the matching error — timeouts, TLS, network I/O, and cancellation are recognized; anything else becomes Unknown. kotlinx.coroutines.CancellationException should be rethrown by callers before reaching here, but is mapped to Cancelled defensively.