def http.err
import cswap-bend-cli@0.1.0.0/usage/req.bend as Reqimport Base
import cswap-bend-cli@0.1.0.0/http.bend as Http
54def http.err(+r: Http.Reply) -> Err:
55 match r:
56 case Http.Reply{st, head, body}:
57 Err{"http-" ++ U32.show(st), retry_after(head), body}