DOC-2526 Fix error display of codes