move all REST responses except HEAD to JSON