whit537/aspen — Issue #19: JSON HTTP errors come out HTML
Author: whit537
Created: 2012-03-01 19:55:07+00:00
State: open

If you raise Response(404) from a JSON simplate you get mis-labeled HTML content. Could change the content-type though javascript clients won't expect that. Probably better to return an empty object or an object like {"HTTP-error": "Not found"}.