envelope_body

Function envelope_body 

Source
pub fn envelope_body(code: &str, message: &str, request_id: &str) -> Bytes
Expand description

The unified error body (section 4.19): a JSON object an operator can grep and a client can correlate. code is a stable machine token, message a human string with no upstream internals, request_id ties the response to the trace/access log.