Handling copy api errors