Added error codes for all commands.