handle new error API of transactional endpoint