If you have a method such as this (taken from http://cxf.apache.org/docs/jax-rs-multiparts.html):
@Produces("multipart/mixed")
public MultipartBody getBooks2() {
List<Attachment> atts = new LinkedList<Attachment>();
atts.add(new Attachment("root", "application/json", new JSONBook()));
atts.add(new Attachment("image", "application/octet-stream",
getImageInputStream()));
return new MultipartBody(atts, true);
}
How would you return a different http status, such as 'NOT FOUND' ?
Thanks,
-- DC
