Error BLZBNTAGT00000840 means the Battle.net update agent could not modify the files it needs, usually because they are locked or in use by another program. Blizzard's own description says the agent could not change necessary files on the hard drive, and it most often appears when downloading or updating a game.
If the error appears at the same point in every download, the game files may be corrupted beyond repair, so uninstall the game and install it again from Battle.net. If it appears across every Blizzard game, check the drive health and try installing to a different drive, since a failing drive can lock files during writes.
What causes error BLZBNTAGT00000840? The update agent could not modify files it needs, usually because they are locked by another program, blocked by security software, or held by a stuck game process. A restart and running as administrator fix most cases.
Is BLZBNTAGT00000840 a server problem? Not usually. It is a local file problem on the PC, which is why Blizzard's fix is to restart, repair the files, and check security software, rather than to wait for a server fix.
Will Scan and Repair delete my game? No. It checks the installed files and replaces only the damaged or missing ones, leaving saves and settings in place.