First pass implementation of errors in terms of json attributes