Add call to errCodes when generating GUI code

Merged Maxime Perrotin requested to merge feature-errCodes into master

Merge request reports