Tornado-JSON icon indicating copy to clipboard operation
Tornado-JSON copied to clipboard

shouldn't error pages be content-type json?

Open benjaminwilson opened this issue 9 years ago • 2 comments

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.

benjaminwilson avatar Jun 10 '15 16:06 benjaminwilson

Agreed, this would be nice.

alexzrh avatar Jun 10 '15 17:06 alexzrh

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

hfaran avatar Jun 10 '15 19:06 hfaran