From Wikipedia,
Historians assert that the attack was in retaliation for the American looting of York, Upper Canada (now Toronto) after the Battle of York in 1813, and the burning down of the Parliament Buildings of Upper Canada. The British Army commanders said they chose to attack Washington "on account of the greater political effect likely to result,".[4]
Governor-General Sir George Prevost of Canada wrote to the Admirals in Bermuda calling for a retaliation for the American sacking of York and requested their permission and support in the form the provision of naval resources. At the time, it was considered against the civilized laws of war to burn a non-military facility and the Americans had not only burned the Parliament but also looted and burned the Governor's mansion, private homes and warehouses.[5]
Further proof of the intention was that after the limited British burning of some public facilities, the British left. There was no territory that they wanted to occupy, no military facility that they had planned to attack, and the attack caused no American casualties.
Here's the link...
http://en.wikipedia.org/wiki/Burning_of_Washington
So based on this, who was the bad guy here? So because this was a "declared" war, that makes the attack in York(Toronto) OK? As dant says, war is hell...Just don't get all noble and high and mighty until you've got all of the details.....