runCatchingResponse
inline fun <R> runCatchingResponse(ignored: ErrorResponse, vararg ignoredResponses: ErrorResponse, block: () -> R): RestResult<R>(source)
Encapsulates the result of the specified function block and dismisses error responses that corresponds to an ignored response, making the Result a success.