Allows constituent operations to indicate that they should use a particular error code when run in an HTTP context, without requiring exception unwrapping and rethrowing at call sites. In the short term, this means more exception types thrown in various places, but the hope is that over time those methods will throw RestApiException and UpdateException only. Change-Id: Ic863624369baacc94b675f50b4c1f4a022b9f5de