I haven't put a lot of thought into this. I guess have two things:
1. Allow return of a Response object in the client framework.
2. An method annotation that says that the return value is a status code @StatusCode or something
3. Allow returning a Response.Status enum
4. Throw a WebApplicationExceptoin iif, the response falls into an error code bucket.