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:
In your flask code, you should ideally specify the MIME type as often as possible, as well:
return html_page_str, 200, {'ContentType':'text/html'} return json.dumps({'success':True}), 200, {'ContentType':'application/json'}
...etc