pub fn create_error(id: u64, code: i64, message: &str) -> ProtocolMessage
Create a protocol error message