I am designing a RESTful API using Python and Flask. As expected, the API needs to receive an API request and return data if all goes well, but in the instance of an error, it n
Maybe the Flask API is more suitable for your needs, as it is particularly designed for RESTful APIs.
It has better exception handling than Flask, see: http://www.flaskapi.org/api-guide/exceptions/