Move REST exceptions to common package

Allows their use in gutterball resources.
My bad re earlier comment, got here and saw this was already dealt with. +1, disregard earlier!