withStatus

infix fun <Res> Res.withStatus(status: Int): ApiResponse<Res, Empty>

Creates an ApiResponse with the given status.