Designing networks with error detection properties through the fault-error relation