The general codes may be returned by any command from the command line. The return codes include general codes as well as codes specific to a certain task.
Syntax of the command for receiving the return code:
echo $?
General return codes:
Virus scan task return codes: