Error Handling from AI Response