Re: returning error messages from tomcat to http clients?

2008-11-20 Thread Padraig O'Dowd
Thanks, but I need to return the proper error code. So that wont work. On Thu, 2008-11-20 at 22:25 +0800, jim ma wrote: > 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:

Re: returning error messages from tomcat to http clients?

2008-11-20 Thread jim ma
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 t

returning error messages from tomcat to http clients?

2008-11-20 Thread Padraig O'Dowd
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 th