def from_http
import bendonnect-rpc@0.1.0.0/src/code.bend as Codeimport Base
138# The code a client infers from a non-200 status with no Connect error body.
139def from_http(+status: U32) -> Code:
140 from_http.go([Row{400, Internal{}}, Row{401, Unauthenticated{}}, Row{403, PermissionDenied{}},
141 Row{404, Unimplemented{}}, Row{429, Unavailable{}}, Row{502, Unavailable{}},
142 Row{503, Unavailable{}}, Row{504, Unavailable{}}], status)