add errorCodes to log.js