Handling of a bad request in the list of requests

Hi,
I am sending a list of requests to statistical API which executes them in parallel using multiple threads as described here:
Multiple-requests-for-a-collection-of-geometries

Everything works fine however if for some reason one of the requests is a bad request (for example the area is too large) it throws a DownloadFailedException for the entire process.

Is there any way to implement it so that bad requests will return status:400 however I would still get responses for all the other requests?

Hi Jakub, if the size of the AOI is always the issue then the following option is best for you:

You can introduce some logic where if a field of interest exceeds 2500x2500 pixels then the request defaults to this image size.

In addition, I would recommend looking into Batch Statistical API which will enable you to scale up much easier.