SERVER-10160 generating error codes for use in mongo shell