A moderate dose, such as that in a cup of coffee or in a soft drink, is not harmful unless you are allergic to caffeine or suffer from certain conditions, such as a peptic ulcer.
However, large doses can be lethal.
Ten grams, or 100 cups of coffee over four hours, can kill the average human.