Is Coffee, tea, cola, energy drinks, chocolate safe during pregnancy?

In short, according to public-health guidance, coffee, tea, cola, energy drinks, chocolate is best limited during pregnancy.

Why

High caffeine associated with miscarriage/low birth weight

What to do

limit to <200 mg/day (~1 12-oz coffee)

The rest of the guidance

Most people checking one food have two or three more in mind. Here is the whole list, strictest first — each verdict is the same one published on that food's own page.

All alcoholbest avoided
Rare/raw beef, poultry, pork; undercooked eggsbest avoided
Raw alfalfa, clover, radish, mung-bean sproutsbest avoided
Shark, swordfish, king mackerel, Gulf of Mexico tilefish, bigeye tuna, marlin, orange roughybest avoided
Sushi, sashimi, raw shellfish, oysters, cevichebest avoided
Unpasteurized (raw) milk; soft cheeses: brie, camembert, feta, blue, queso frescobest avoided
Unpasteurized/fresh-pressed juices, ciderbest avoided
Albacore (white) tunabest limited
Liver, pate, high-dose vitamin A supplementsbest limited
Unwashed fruits and vegetablessafe when washed well
Salmon, sardines, shrimp, pollock, catfish, tilapia, canned light tunaencouraged
Deli/luncheon meats, hot dogs, pate, refrigerated meat spreadssee page

Source: MedlinePlus: Pregnancy and Nutrition (U.S. National Library of Medicine).

Educational reference from public health guidance; not medical advice — consult a clinician/pediatrician.