Document error protocol