Overhaul exception format in RestMethodInfo.

@dnkoutso @edenman