Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
return jsonify(d), 201 breaks the 'application/json' mimetype #478
results in returning the client a response with the intended status code and body, but with a text/html mimetype.
I realize this may not be the intended way of using jsonify and the status code shortcut, nevertheless if would be a neat feature.
For the records, if you need to use jsonify and need to return a custom status code you could do
Or extend jsonify (I created a gist here: https://gist.github.com/2336085).