AviationEdgeAPI / Aviation-Edge-Complete-API

The complete repository for aviation APIs.
https://aviation-edge.com/developers
26 stars 6 forks source link

Your errors get returned as 200 Ok #2

Open MarkoShiva opened 2 years ago

MarkoShiva commented 2 years ago

Well I know that consilidation of data is nice job but as you people are making your service paid and have so bad API I think you should be paying developers for usage of your API and handling all of those funny cases where the only status_code that your API is sending is everything is ok there is no error.

NotRest

In other words it would be normal to return 400 Bad Request for wrong parameters and 404 not found in case there is no data instead of sending a status_code ok with error message in nested with "success": False.