iccowan / AviationAPI_WWW

AviationAPI is an API allowing flight simulation developers to pull certain information in an organized and thought out way.
https://www.aviationapi.com
8 stars 5 forks source link

New feature idea #5

Open RazerMoon opened 4 years ago

RazerMoon commented 4 years ago

Hi, this is a great API and I like using it but it would be nice if the API returned a 404 code if the result is empty.

E.g. If you use https://api.aviationapi.com/v1/airports?apt=xkss you get a 404 because the airport with code "XKSS" doesn't exist. This way you don't have to check manually.

iccowan commented 3 years ago

I like this idea... I have a few issues that I have on the todo list when I get a chance and I'll add this to the list!