Changed JsonContractErrors to a public class.