473,511 Members | 16,252 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HTTP Status Codes

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.
Nov 12 '05 #1
1 1960
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.

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2321
by: Gianni Mariani | last post by:
I'm involved in a new project and a new member on the team has voiced a strong opinion that we should utilize exceptions. The other members on the team indicate that they have either been burned...
2
1929
by: bwmiller16 | last post by:
Anyone - Can anybody tell me where I would find the linux status codes for such udb utilities as backup, etc.? For instance, in my cron job I have: db2 backup database $dir to $BACKUP_DIR...
1
2220
by: Dhwanil Shah | last post by:
Hi, We have an aspx page designed in VS.NET 2003. Our requirement is that a client (another application), sends HEAD requests to our application with Basic Auth header. Based on security criteria,...
6
2538
by: Andy Fish | last post by:
Hi, I've RTFM'd in vain for some named constants in the asp.net framework representing the HTTP error codes - the equivalent of Java's HttpServletResponse.SC_NOT_FOUND for 404 etc. All the...
0
1474
by: Daniel Kopp | last post by:
Hi! I tried to implement custom error pages using the <customErrors> directive in a web.config file. It worked fine for "simple" errors like HTTP 404, like this example: <customErrors...
1
2676
by: chen | last post by:
We're having an internal debate about the merits & demerits of returning status codes in the output message vs exceptions to signify errors in handling a Web method. The status code camp is...
1
2279
by: Alvin A. Delagon | last post by:
Greetings! Is there any way I can obtain the HTTP status codes when using the urllib module? As of now I can only think of doing a regex on the result of the read(). Thanks in advance! ^_^
0
1039
by: Anbu | last post by:
I already posted this message on usenet groups. But no response. I'm trying with the Microsoft community now, hoping to get some resolution. I have an Intermediate Web service developed using...
2
13744
by: Bob | last post by:
I'm running sql server ver 7.0 SP4. I have an access project (.adp) that runs a view which is nothing more than a select statement. Access locks up solid when I try to run this query - with NO...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7353
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7418
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7075
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7508
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5662
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3212
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
446
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.