pub fn copy_fail(message: &str, buf: &mut BytesMut) -> Result<()>