Handle 404 errors when parsing query responses