In addition to the detailed reason message parse errors have an error-code property that is specified in the WHATWG HTML spec.