Well, at least in the JXX-CXF interceptor thread, if you installed:
message.getExchange().put(Response.class, response);
... , . CXF, , .
, :
Response response = Response
.status(Response.Status.FORBIDDEN)
.entity(new ErrorEntity("This is a JAXB object with an error string"))
.build();
, CXF JAX-RS-, , , PRE_INVOKE.