Return HTTP status code 201 in flask
You can use Response to return any http status code.
> from flask import Response
> return Response("{'a':'b'}", status=201, mimetype='application/json')
You can read about it here.
return render_template('page.html'), 201