Error handling in doGet()