Function closeErrorCodeToString