hfaran / Tornado-JSON

A simple JSON API framework based on Tornado
http://tornado-json.readthedocs.org/
MIT License
273 stars 60 forks source link

shouldn't error pages be content-type json? #75

Open benjaminwilson opened 9 years ago

benjaminwilson commented 9 years ago

hi guys

shouldn't e.g. a 404 result in a JSON response, for consistency? using Postman and GETing a unknown path at present yields what looks like tornado's standard error response, which is content-type HTML.

alexzrh commented 9 years ago

Agreed, this would be nice.

hfaran commented 9 years ago

Agreed. (Linking for my own reference: https://groups.google.com/forum/#!topic/python-tornado/upI5hrejdz4)