def wire.why
import emerging-ezhttp@0.21.0.0/src/wirespec.bend as Wirespecimport Base
61# a failed exchange's status and reason as the reason the client reports
62def wire.why(code: Maybe<&2, U32>, why: String) -> String:
63 match code:
64 case None{}:
65 why
66 case Some{n}:
67 wire.why.of(why, U32.is_eq(n, wire.late()))