pub fn err_response( command: &str, code: &str, message: &str, details: Value, ) -> Value
Build an error response envelope.