can't we load the error item definition in checkStatus?
I think that keeps this file better understandable. And checkStatus can be considered to be called after all is read. So i think it should go there