messageOf

fun messageOf(code: Int): String

Render the libtorrent http_category().message(ev) string for an arbitrary status code. Faithful to the C++ switch: known codes get their reason phrase, anything else falls back to "(unknown HTTP error)", always prefixed by the numeric code and a space.