Hardening/more cpp xmls to separate file

### Description
Converted some of the hundreds of instances of XML and JSON data inside cpp files.
A few errors corrected.
Some errorCodes fixed to have the reasonPhrase corresponding to the code.