Server return code on Apache server

Is it possible to set the server return code on Apache server such that when a client retrieve a XML file from the server, it will return a code 200 when it have sent out successfully.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This already happens if the XML file has been found and sent to the client:

Each successful call returns a 2xx message (or 304 in case a file has not changed since the last visit), client errors generate a 4xx status and server faults result in a 5xx status.

So why would you like to change the server behavior instead of checking for the correct states on the client side?
AXISHKAuthor Commented:

The XML file placed on the server couldn't be read by Cisco phone properly, as it expect an 200 code to return to the phone.

So, is it the way to go  ?

Could you tell me if you are using Apache2? If yes, first check your access.log inside apache's log directory (which would be "logs" inside Apache2 directory on Windows or "var/log/apache2" on Linux) directly after you tried to retrieve the XML file via Cisco phone, check which status code was sent to the client. You can overwrite the HTTP status codes via Apache redirects, have a look at the entire status code functionality on "Ask Apache" for more in-depth info:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AXISHKAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.