def outcome
import bend-kit-commands@0.4.0.0/commands.bend as Commandsimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
201def outcome(accepted: Bool, r: Bytes.Bytes) -> Outcome<Bytes.Bytes>:
202 match accepted:
203 case True{}:
204 Accepted{r}
205 case False{}:
206 Refused{r}