fromHttp

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.