pub fn error_wire(status: u16, msg: &str) -> Vec<u8> ⓘExpand description
Build a wire-format error response with a plain-text body.
Used by dispatch_from_bytes for malformed input and by the
JNI bridge for panic fallback. The response always carries
content-type: text/plain; charset=utf-8.