Overhaul exception format in RestMethodInfo.