A Flask extension for wrapping errors in appropriate JSON-API compatible json.
Install the extension using pip:
$ pip install -U flask-jsonwrap
This package exposes a Flask exentions which overwrites the default HTML error handling endpoints in Flask with endpoints that return error messages in the manner decribed by JSON-API
from flask_jsonwrap import JSONWrap
app = Flask(__name__)
jsonwrap = JSONWrap()
jsonwrap.init_app(app)