Package-level declarations

Functions

Link copied to clipboard
fun HttpStatusCode.toNetworkException(): NetworkException?

Returns the NetworkException a response with this status stands for, or null for a success.

Translates this into a NetworkException, keeping it as the cause, or returns null when it is not a network failure.