Update document error codes based on feedback from dcoates and warner.