notFound

Returns a Failure for the not found status code.

Author

Jan Müller

Parameters

error
The error text.
T
The type of the Result.
fun <T : Any> notFound(error: String): Result.Failure<T>