我在用
return response(null,204);
because I would like to return an empty body message, but the problem is that when I parse the response with a ruby code
JSON.parse(res.body)
我得到一些身体信息:
{"data"=>[]}
so how can I avoid to return this "data" and instead return only the status code?