Time consuming, and outside the planned scope for this pull request. 

In general I think we need to decide how we want to structure our Rest API classes. We had decided to share the client and server interfaces (which has some benefits and saves some code), and we didn't want to use jax-rs specific types in our interfaces to make it more transparent, and easily accessible by both REST callers and java callers. However, this is not letting us change the response code here because we have to access to the response object.