[Flask] Flask server returns html response

Irtiza Ali iali at an10.io
Thu Dec 27 07:09:51 EST 2018

Hello everyone,

I am a newbie in flask environment. I have built an api in flask,
everything works fine but when I pass an invalid request it returns
html response.  Can some please guide me to return json responses instead
of html ones. Thank you in advance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20181227/1bb73ced/attachment.html>

More information about the Flask mailing list