I thought it would be useful to define the data for error reporting in a configuration file, say, errordefinitions.json:
{ "errorDefinitions": {