runIgnoringResponseOrNull

inline fun <R> runIgnoringResponseOrNull(vararg ignoredResponses: ErrorResponse, block: () -> R): R?(source)

Runs the specified function block and returns null on error responses that corresponds to an ignored response.

Any other exception is still thrown.

See also