runCatchingResponse

inline fun runCatchingResponse(vararg ignoredResponses: ErrorResponse, block: () -> Unit): RestResult<Unit>(source)

Encapsulates the result of the specified function block and dismisses error responses that corresponds to an ignored response, making the Result a success.

See also