Change response to be jsonify to prevent weird escaping

does 'messages' confuse things though? Should this be consistent in
other responses? or only 400s?

need to fix get_json_from_request?