Hi,

we have a web application running in tomcat that returns error pages for
status codes like e.g. 404 - absolutely fine.

In the same servlet context we provide a RESTful API (using jersey [1]),
that in most of the cases returns xml. In some cases responses with only
the error code set (e.g. 400 or 409 etc) are returned. Then the response
body received by the client also contains the markup of the related
error pages - which is not what we want.

Is there a way not to return error pages in these cases?

Thanx && cheers,
Martin

[1] http://jersey.dev.java.net/


Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to