Prevent apache http server changing response code

Posted by Brad on Server Fault See other posts from Server Fault or by Brad
Published on 2010-03-08T14:23:10Z Indexed on 2010/03/08 14:38 UTC
Read the original article Hit count: 573

Filed under:
|

Hi all,

I have a servlet providing a REST based service running on tomcat which I am accessing through Apache Http Server v2.2. My problem is that a response code for one for the service methods is being changed when it passes through http server.

I have a curl script which I use to test the service. It is supposed to return a 204 No content response which it does when I hit the servlet directly. When I hit Apache with the script the response gets changed to a 200 Ok.

Can anyone with experience of configuring Apache advise me how to fix this?

Thanks, Brad.

© Server Fault or respective owner

Related posts about apache

Related posts about http