begin to add error codes for primary read/write

- need to know the difference between validation error inside vs
  outside the desired programming region