我正在使用Akka-hhtp (scala)向API异步发送多个http批处理请求,并且想知道当响应代码不是200OK时,处理异常的正确方法是什么。 下面是一些伪代码来演示我的观点。 /* Using For comprehension here because the server API has restriction on the amount of data we can send and the time it takes them to process each request. So they require us to send multiple mini requests