-
-
Save alinasrullayev/76fd1f76d0ee25fb07bbb9f6d6f87f5e to your computer and use it in GitHub Desktop.
flask abort as json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import abort, make_response, jsonify | |
abort(make_response(jsonify(message="Message goes here"), 400)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment