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 response body, the original status code 409 is retained. RFC 2616 seems to suggest that its cool to return a response body with a 409, so I wonder if there is something else I'm doing incorrectly or have forgotten to configure ? Sample: public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { OutputStreamWriter writer = new OutputStreamWriter(response.getOutputStream()); writer.write("Entity already exists"); response.setStatus(HttpServletResponse.SC_CONFLICT); } Env: XP SP2, Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode) Regards Erik --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]