Grpc.Statusval pp_code :
Ppx_deriving_runtime.Format.formatter ->
code ->
Ppx_deriving_runtime.unitval show_code : code -> Ppx_deriving_runtime.stringcode represents the valid gRPC status codes to respond with.
val int_of_code : code -> intint_of_code c returns the corresponding integer status code for c.
val code_of_int : int -> code optioncode_of_int i returns the corresponding code for i if it exists.
val pp :
Ppx_deriving_runtime.Format.formatter ->
t ->
Ppx_deriving_runtime.unitval show : t -> Ppx_deriving_runtime.stringv ~message code creates a new status with the given code and message.
val message : t -> string optionmessage t returns the message associated with t, if there is one.
val extract_status : H2.Headers.t -> textract_status headers returns the status embedded in the headers, or a default when the status is invalid or missing.