Error handling for APIv2