What makes a planet a dwarf planet?

What makes a planet a dwarf planet?