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 #5817 of 14031 |
Re: [rest-discuss] 418 Invalid [was HTTP Status code question]

On Mar 24, 2006, at 7:55 AM, Bill de hÓra wrote:

> Jan Algermissen wrote:
>>
>> On Mar 24, 2006, at 1:07 PM, Jon Hanna wrote:
>>
>>>
>>> Why not. It tells us that the request cannot be successfully tried
>>> againt without alteration. It tells proxies that too.
>>>
>>
>> <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
>> modifications.
>> </quote>
>
> 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
> expected that the user might be able to resubmit the request with
> valid
> content and where the sent content was syntactically correct according
> to its media type. The response body SHOULD include enough information
> for the user to recognize the source of the conflict. Invalidations
> are
> most likely to occur in response to a PUT or POST request.

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 servers are always right (and never omnipotent). And the last
sentence is kind of goofy -- request payload is unlikely to be
invalid when it isn't present.

Do you want me to standardize it?

Of course, it would help if browsers would implement HTTP, eventually,
and treat the code as a 400 if not understand.

....Roy


Sat Mar 25, 2006 12:56 am

roy_fielding
Offline Offline
Send Email Send Email

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

... 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
Online Now 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

... Could someone help me understand the relationship between standard error codes and extensions please? If I got 422, how would I know how to interpret it? ...
Dave Pawson
dpawson2000
Offline Send Email
May 4, 2006
7:18 am

Ideally there'd be an HTTP response code registry. Since there isn't one (AFAIK), just Google for it. http://www.google.com/search?q=http+422+response Mark....
Mark Baker
gonga_thrash
Online Now Send Email
May 4, 2006
7:20 am

http://www.ietf.org/rfc/rfc4028.txt seems the best, but a little unmatched to the definition earlier in this thread? Thanks Mark. ... -- Dave Pawson XSLT...
Dave Pawson
dpawson2000
Offline Send Email
May 4, 2006
7:23 am

Heh, nope, that's SIP. You'd be forgiven for confusing it with HTTP though 8-) The most relevant search item I saw was; ...
Mark Baker
gonga_thrash
Online Now Send Email
May 4, 2006
7:28 am

... From those HTTP related RFCs I've got XML versions for, I'm producing a compound index. So at least a subset of the codes can be found at ...
Julian Reschke
JulianReschke
Offline Send Email
May 5, 2006
6:58 am

... Either: a. You'd know what a 422 meant from the WebDav spec or elsewhere, and treat it according to that. b. You treat it as an unknown error in the range...
Jon Hanna
hack_poet
Offline Send Email
May 4, 2006
2:17 pm

... Yes! I like that. Fits nicely too. thanks Jon. What's the 'standards/procedural' time at which such an error code 'should' be understood by an...
Dave Pawson
dpawson2000
Offline Send Email
May 4, 2006
2:31 pm
 First  |  |  Next > Last 
Advanced

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