Search the web
Sign In
New User? Sign Up
rest-discuss · REST Discussion Mailing List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
HTTP Status code question   Message List  
Reply | Forward Message #5770 of 14031 |
Hi,

this is actually a bit OT here, but I cannot think of any other place
where people would be more interested in this kind of question/answer.

I have the following scenario: A server sends a form to a client,
letting it know that it accepts application/xml+rdf for processing;
the client then POSTs an application/xml+rdf message to the given
resource for the server to process.

What HTTP status code should the server return if there are triples
missing in the RDF that it needs for processing the RDF correctly?

The maybe-possible codes would be 400, 406 or 409, but they are all
not a perfect choice. 406 is maybe the closest if one considers that
the idea of a mime type with extensible semantics is newer than the
method specification.

Ideas?

Thanks.

Jan


________________________________________________________________________
_______________
Jan Algermissen, Consultant & Programmer
http://jalgermissen.com
Tugboat Consulting, 'Applying Web technology to enterprise IT'
http://www.tugboat.de







Fri Mar 24, 2006 9:57 am

algermissen1971
Offline Offline
Send Email Send Email

Forward
Message #5770 of 14031 |
Expand Messages Author Sort by Date

Hi, this is actually a bit OT here, but I cannot think of any other place where people would be more interested in this kind of question/answer. I have the...
Jan Algermissen
algermissen1971
Offline Send Email
Mar 24, 2006
9:58 am

... 200 with: <html> <h1>There's an error!</h1> </html> (just joking). Nic...
Nic
nferrier_tap...
Offline Send Email
Mar 24, 2006
11:23 am

... Actually, it might be exactly what has to be done (using a mime type that the client understands to automatically find the error of course). I have been...
Jan Algermissen
algermissen1971
Offline Send Email
Mar 24, 2006
11:34 am

... That's the anti-pattern of treating HTTP as a transport protocol. A HTTP error does not just mean a failure at the level of HTTP itself. Consider the...
Jon Hanna
hack_poet
Offline Send Email
Mar 24, 2006
11:47 am

... Ouch - that hurts. I knew saying the above was a slippery slope :o) ... Yes, but an equivalent case to mine would be a search engine answering e.g. 400 for...
Jan Algermissen
algermissen1971
Offline Send Email
Mar 24, 2006
11:56 am

... It is treating it as a transport protocol though. ... Why not. It tells us that the request cannot be successfully tried againt without alteration. It...
Jon Hanna
hack_poet
Offline Send Email
Mar 24, 2006
12:04 pm

... What he said. My 200 joke was, err... a joke. Clearly it should at least be 400. Nic...
Nic
nferrier_tap...
Offline Send Email
Mar 24, 2006
12:23 pm

... 406 is not appropriate. It would be appropriate if for example the response was also going to be application/xml+rdf, the request was correct, but the...
Jon Hanna
hack_poet
Offline Send Email
Mar 24, 2006
11:32 am

... <quote> 10.4.1 400 Bad Request The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without...
Jan Algermissen
algermissen1971
Offline Send Email
Mar 24, 2006
12:52 pm

... I think 400. We've talked about XML and schemas before but not really reached any satisfactory conclusion. Schemas are not quite orthogonal to media types....
Nic
nferrier_tap...
Offline Send Email
Mar 24, 2006
2:24 pm

Nic, Mark has wrestled with this extensively: http://www.markbaker.ca/2002/09/Blog/2004/01/19#2004-01-application-xml ...
Jan Algermissen
algermissen1971
Offline Send Email
Mar 24, 2006
2:33 pm

... I suspect you're identifying a real issue, but I don't think schemas have anything to do with it. Whether a document does or does not have a schema, and...
Elliotte Harold
elharo@...
Send Email
Mar 24, 2006
2:38 pm

... Well... I don't like them either. You're right, the problem is more general than schemas. But I think they might be a handle to solve it. In 5 years of...
Nic
nferrier_tap...
Offline Send Email
Mar 24, 2006
3:24 pm

... I don't think they are. I think they're a red herring. We know from experience that: 1. Far more documents don't have schemas than do. 2. Documents on the...
Elliotte Harold
elharo@...
Send Email
Mar 24, 2006
4:10 pm

... I've been heard to describe media types, at least in the context of structured formats, as "names for a series of compatible schema" (think text/html vs....
Mark Baker
gonga_thrash
Online Now Send Email
Mar 24, 2006
5:44 pm

... Ok. I looked at the stuff you've been looking in respect of self describing resources. I agree that RDF could be part of the answer. But RDF will require ...
Nic
nferrier_tap...
Offline Send Email
Mar 24, 2006
11:23 pm

... They are different message types, giving the message different meanings. Usually they'll result in dispatching to different applications. ... I don't think...
Jan Algermissen
algermissen1971
Offline Send Email
Mar 24, 2006
2:40 pm

... Actually, I have wondered about an approach like: Accept: text/xmlns+xml;uri=http://xmlns1;uri=http://xmlns2 This would, in effect, say "send me any...
Seairth Jacobs
seairthjacobs
Offline Send Email
Mar 25, 2006
1:51 am

... 418 Invalid The request could not be completed due to a validation failing against the sent entity. This code is only allowed in situations where it is ...
Bill de hÓra
bdehora
Offline Send Email
Mar 24, 2006
3:55 pm

... Thanks, yes. But in which HTTTP specs is that in? Jan ... ________________________________________________________________________ _______________ Jan...
Jan Algermissen
algermissen1971
Offline Send Email
Mar 24, 2006
4:26 pm

... The next one? An extension RFC? The point is this: when a specified item has "kinda like" semantics is *exactly* when a new item should be defined....
Bill de hÓra
bdehora
Offline Send Email
Mar 24, 2006
4:35 pm

... I'd say that is how the deployed web *is* rather then how it *works*. Imagine if invalid form postings returned 4xx error codes when appropriate, it would...
Jonathan Arkell
jonnay23
Offline Send Email
Mar 25, 2006
9:58 pm

... I always tell my teams and the people I'm mentoring that they should return a correct error code (or 400 or 500) with standard web interactions. It doesn't...
Nic
nferrier_tap...
Offline Send Email
Mar 25, 2006
10:53 pm

... Err. I meant to say: display a status code other then 200. (For those that are interested, I have posted a bug report on this already: ...
Jonathan Arkell
jonnay23
Offline Send Email
Mar 25, 2006
11:08 pm

... Yep, that's what I would do, though a properly specified response code would never include that second sentence "This code is only allowed ..." since...
Roy T. Fielding
roy_fielding
Offline Send Email
Mar 25, 2006
12:57 am

... Yes please. cheers Bill...
Bill de hÓra
bdehora
Offline Send Email
Mar 25, 2006
1:05 am

... Actually, Julian just pointed out to me that WebDAV already defined a 422 (Unprocessable Entity) status code which is probably sufficient ...
Roy T. Fielding
roy_fielding
Offline Send Email
May 3, 2006
8:55 am

... I can think of no reason. Just so I understand, since WebDAV is a HTTP extension, you can (re)use these codes outside a WebDav context, right? cheers Bill...
Bill de hÓra
bdehora
Offline Send Email
May 3, 2006
6:31 pm

Sure! 422 is just another HTTP response code....
Mark Baker
gonga_thrash
Online Now Send Email
May 3, 2006
6:35 pm
First  | < Prev  |  Last 
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help