title: Apache CXF: how to return failure response from an interceptor
body: <p>I have written a custom interceptor that does some parameter validation. I want to be able to return an error code and serialize a JAXB-annotated class as the response body.</p>
  
  <p>If I throw a WebApplicationException, it doesn't have any special processing done to serialize the Response object inside (which makes sense; I assume that is done by another interceptor).</p>
  
  <p>How should I go about stopping the interceptor chain but still have JAXB serialize the response entity?</p>