Make error code to string map const

Made the std::map holding the translation from errors::ErrorCodes to std::string const by using the C++11 initializer list.
Merge pull request #6295 from Dr15Jones/makeErrorCodesConst

Make error code to string map const