It will fire a 500 error when body data.to_json is called without the re...

without this line, A html error 500 will be fired on call of to_json function