[Flask] Raise abort() instead of return abort

Alejo Arias alejoar at gmail.com
Sat Jan 28 04:05:40 EST 2017


Yes, use error handlers:
http://flask.pocoo.org/docs/0.12/patterns/apierrors/

On Jan 28, 2017 10:03, "Dorian Hoxha" <dorian.hoxha at gmail.com> wrote:

> Hello friends!,
>
> Is there something simmilar to "return abort()" but that you can raise ?
> Basically, raise an exception that in fact is a response which flask
> understands and returns ?
>
> Thank You
>
> _______________________________________________
> Flask mailing list
> Flask at python.org
> https://mail.python.org/mailman/listinfo/flask
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20170128/5c35aea3/attachment.html>


More information about the Flask mailing list