Example cpp file now has an example error

To demonstrate the diagnostic information response.
Diagnostic kinds now full name instead of 'E', 'W'

This changes both the C++ API and the REST API.