ERROR / MISTAKE:
An incorrect human action that results in incorrect functionality is called an ERROR.
DEFECT / BUG / FAULT / INCIDENT:
A deviation between expected behavior to actual behavior of the system identified during testing is called a defect or BUG.
The deviation between expected to actual behavior identified by end user in operation is called FAILURE.