error codes updates to match those of val3dity