def fail

bend-kit-http2@0.4.0.0 · http2.bend:21

import bend-kit-http2@0.4.0.0/http2.bend as Http2
import Base

21# Error codes from RFC 9113 §7: 1=PROTOCOL_ERROR, 3=FLOW_CONTROL_ERROR,
22# 6=FRAME_SIZE_ERROR. A connection error uses stream 0.
23def fail(+code: U32, +connection: Bool, +stream: U32) -> Maybe<&2, Error>:
24  Some{Error{code, connection, Bool.pick(U32, connection, 0, stream)}}

Uses (5)

Used by (1)