EDOC-1143: Added validation of errors