The correct answer is D. error of omission.
An error of omission is an error that occurs when a transaction is not recorded in the accounting records. In this case, the proprietor has taken goods worth Rs. 500 for his personal use, but no entry has been passed in the books. This is an error of omission because the transaction has not been recorded.
An error of commission is an error that occurs when a transaction is recorded incorrectly in the accounting records. For example, if the proprietor had taken goods worth Rs. 500 for his personal use and recorded it as a sale, this would be an error of commission.
An error of principle is an error that occurs when a transaction is recorded using the wrong accounting principle. For example, if the proprietor had taken goods worth Rs. 500 for his personal use and recorded it as a purchase, this would be an error of principle.
An error of compensation is an error that occurs when two or more errors offset each other. For example, if the proprietor had taken goods worth Rs. 500 for his personal use and recorded it as a sale, but then recorded a purchase of goods worth Rs. 500, this would be an error of compensation.