add support to REST exception for multiple mime types