prevent no json returned from REST API when firing an exception