Change in API error handling and logging