Make sure exception thrown at get or route stage is RestException
so that we can generate better debug info