Closed Mashin6 closed 3 years ago
Duplicate of #145
A syntax error should result in a HTTP 400 Bad Request. I do not understand what you mean by "bbox out of range". A timeout is indeed not signalled in csv, because there is no obvious place for error messages in csv. Load shedding is indicated by HTTP 504 if the server is overloaded or HTTP 429 if the server had seen too many requests from the IP address. Please see the user's manual.
Actually you are right wget returns 400 Bad Request, which I didn't see because I was only looking at output. But I found out that curl also returns syntax error as e.g. ...
Error: line 2: parse error: Key expected - ';' found.
...And the same happens also for bbox out of bounds e.g. with [bbox:-90,-180,90,280] so curl solved this for me.
Currently when something goes wrong with a query the api responds in different way depending on which out: type was selected.
Particularly problematic is csv because it gives no error messages at all.