fromStatus

fun fromStatus(status: Int, body: String?): ThanklyException

Map an HTTP status onto its exception.

Unmodelled statuses become Server rather than something untyped, so a caller catching ThanklyException never misses one.