onFailure

inline fun <T> Response<T>.onFailure(block: (Response.Failure) -> Unit): T?


inline suspend fun <T> Deferred<Response<out T>>.onFailure(block: (Response.Failure) -> Unit): T?

Handles request's failure case.

Return

a fail-safe response.