def from_http
import bendonnect-rpc@0.1.0.0/src/error.bend as Errorimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
342# Client side of a non-200 unary response: the Connect error in the body if
343# it parses, else a code inferred from the status with the status text as message.
344def from_http(+status: U32, body: Bytes.Bytes) -> Error:
345 from_http.pick(decode(body), status)