Document error representation and validator responsibilities