There are not HTTP status codes for this. Status codes are
protocol-specific and are independent of the data that they carry. For
instance, you can include HTTP that is horribly written and does not conform
to any semblance of a specification, yet a web server will still deliver it
to you if you ask for it. The fact that it is XML has no bearing on the web
request.
Types of HTTP status codes are:
200 - OK
302 - Resource moved to another location
401 - Not authorized
404 - Not Found
500 - Server error
For a more thorough list, see the W3C protocol spec.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
--
Kirk Allen Evans
http://blogs.msdn.com/kaevans
-- This posting is provided "AS IS" with no warranties, and confers no
rights.
--
Kirk Allen Evans
http://blogs.msdn.com/kaevans
-- This posting is provided "AS IS" with no warranties, and confers no
rights.
"chris fink" <ch********@decisionone.com> wrote in message
news:e2*************@TK2MSFTNGP11.phx.gbl...
Hi,
What are the appropriate HTTP Status Codes for the following:
1. XML is not well-formed (structure problem)....
2. XML is not valid (as per DTD/XSD/XDR).....missing req'd field, etc
I checked out W3C spec and was unable to decide which status codes are
best. Any help is appreciated.
Thanks in advance.