Re: return status code 409 overwritten

2005-11-11 Thread Erik Eide
Cool, thanks Peter - thats probably more approriate. Cheers Erik On 11/11/05, Peter Menzel <[EMAIL PROTECTED]> wrote: > Erik Eide schrieb: > > Thanks Peter > > > > Thats works fine, I'm not using getWriter() as that was just an > > example, I forward to a JSP for displaying the error message. > >

Re: return status code 409 overwritten

2005-11-11 Thread Peter Menzel
Erik Eide schrieb: Thanks Peter Thats works fine, I'm not using getWriter() as that was just an example, I forward to a JSP for displaying the error message. In this case I recommend not to set the status in the servlet and forward to the jsp manually. It would possibly more save using respo

Re: return status code 409 overwritten

2005-11-11 Thread Erik Eide
Okay, my bad - I was forwarding to path missing a leading / so the 404 was probably from not finding the JSP to display the error. Thanks for the quick reply Erik On 11/11/05, Erik Eide <[EMAIL PROTECTED]> wrote: > Thanks Peter > > Thats works fine, I'm not using getWriter() as that was just an >

Re: return status code 409 overwritten

2005-11-11 Thread Erik Eide
Thanks Peter Thats works fine, I'm not using getWriter() as that was just an example, I forward to a JSP for displaying the error message. Erik On 11/11/05, Peter Menzel <[EMAIL PROTECTED]> wrote: > Erik Eide schrieb: > Hi > > > > I've a small REST web service, I'd like to deploy in Tomcat 5.5

Re: return status code 409 overwritten

2005-11-11 Thread Peter Menzel
Erik Eide schrieb: Hi I've a small REST web service, I'd like to deploy in Tomcat 5.5.12. When I try and return status code 409 (Conflict) and an error message in the response body for a POST operation, Tomcat seems to overwrite the status code with a 404 (Not Found). If I do not return a res