mitsuhiko/flask — pull request #412 by jfinkels (2012-02-29 05:28:38+00:00)
Title: Add jsonify_status_code function which allows the user to set status code on JSONified response

Add ``flask.helpers.jsonify_status_code`` function, a generalization of ``flask.helpers.jsonify`` which allows the user to set HTTP status code on JSONified responses. Documentation change, public API change, and additional test added as well.

I'm not totally sure that this is important enough to be part of the public API of Flask, but I've used this pattern enough in my code that I thought it might be worth at least a pull request discussion.