What’s the law on threats and harassment in Canada?

Harassment and threats are covered in sections 264 and 264.1 (respectively) of the Criminal Code of Canada.