The Treaty of Ghent represented:

a substantial victory for the United States
a substantial victory for the British
a return to conditions as they were prior to the war
a diplomatic coup for Napoleon