def from_http

bendonnect-rpc@0.1.0.0 · src/code.bend:138

import bendonnect-rpc@0.1.0.0/src/code.bend as Code
import 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)

Uses (5)

Used by (2)