We\'re using Flask for one of our API\'s and I was just wondering if anyone knew how to return a HTTP response 201?
For errors such as 404 we can call:
you can also use flask_api for sending response
from flask_api import status @app.route('/your-api/') def empty_view(self): content = {'your content here'} return content, status.HTTP_201_CREATED
you can find reference here http://www.flaskapi.org/api-guide/status-codes/