mapFailureStatus

Transforms the failure status of Results if they are Result.Failures.

Return

The new Result.

Author

Jan Müller

Parameters

<receiver>
The source Result.
T
The Result type.
transformation
The transformation operation.
suspend fun <T : Any> Result<T>.mapFailureStatus(transformation: SuspendFunction1<HttpStatusCode, HttpStatusCode>): Result<T>