openaq / openaq-api-v2

OpenAQ API
https://api.openaq.org
43 stars 9 forks source link

catch 408 timeouts #298

Closed russbiggs closed 8 months ago

russbiggs commented 1 year ago

A number of endpoints allow complex and long-running queries which often cause 408 timeout errors. Currently this defaults to a generic error provided by FastAPI. It would be better if we can catch tehse and provide a custom JSON response with more descriptive text

russbiggs commented 8 months ago

closed with release-20240109