IX-9.7.0-PLAT-653 -> IX-9.7.0

Added APIErrors::getErrorData() and using it instead of duplicated code sections.

PLAT-653 #time 1d