The simple way is returning the http OK 200 status code instead of 500 , and set the error message to response body. Does it work for you ?
On Thu, Nov 20, 2008 at 9:20 PM, Padraig O'Dowd <[EMAIL PROTECTED]> wrote: > Hi, I'm encountering the following problem and just wanted to find out > if there is a way to disable this in tomcat? > > In my web app in tomcat, I do the following - > response.setError("My error message"); > > but when tomcat returns the response, it detects that the connecting > client is using http and then embeds the error message in html - is > there a way to stop this and just get tomcat to return my error message? > > Thanks, > Padraig O'Dowd > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >