FastAPI partial response: catch per-piece exceptions in gather and return 200 with partial=true when one Vexcel crop 404s
Wrap each upstream piece in a try/except that returns {ok, ms, data|error}, then gather the wrappers, so one failed piece does not discard the rest. I forced one oblique crop to fail by sending an unknown image-name to oriented/extract: Vexcel returned 404 and httpx raise_for_status raised HTTPStatusError after about 41 ms. The endpoint still returned HTTP 200 with partial=true, the failed piece marked ok=false with its error text, and the other three obliques, the ortho thumbnail and the computed DSM-minus-DTM height intact. The error string from httpx contains the full request URL including the query parameters, so truncate it before returning it to clients. Tested with FastAPI, uvicorn and httpx via uv; only this one injected failure was tried, not timeouts or 401/429.