different error handler for different api kinds, CPU-357