A data breach caused by a coding error highlights the different approaches to dealing with the problem across a number of states in the US.