add ErrorCode

and log4j.properties