• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 252
  • Last Modified:

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.

Thanks
0
AXISHK
Asked:
AXISHK
  • 2
  • 2
1 Solution
 
SwafnilCommented:
This already happens if the XML file has been found and sent to the client:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

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?
0
 
AXISHKAuthor Commented:
https://www.myciscocommunity.com/thread/14535

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  ?

Tks
0
 
SwafnilCommented:
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:

http://www.askapache.com/htaccess/apache-status-code-headers-errordocument.html#redirect-code-in-htaccess
0
 
AXISHKAuthor Commented:
tks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now