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 use Response to return any http status code.
> from flask import Response > return Response("{'a':'b'}", status=201, mimetype='application/json')