Expat’s internal error number for the specific error. The errors.messages dictionary maps these error numbers to Expat’s error messages. For example:
xml.parsers.expat/ExpatError.code
ExpatError.code