[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: More on REST and HTTP status codes


404 query string
"K. Ari Krupnikov" wrote:

>Tim Bray <tbray@t...> writes:
>  
>
>>404.  The URI is opaque.  There is no such resource.
>>    
>>
>Do you have a reference to any sites that actually exhibit this
>behavior?
>  
>
http://www.seairth.com/blog

For any URI under it, specifying an invalid query string returns a 404 
response.  I use query strings in a very limited fashion.  The three 
uses are:

For an "index" page, you can return an RSS feed with the query string of 
"?rss=2.0".  To add an "entry" to that index, use the query string of 
"?form=addentry".  If you try to use both query parameters at the same 
time (i.e. "?rss=2.0&form=addentry), you will get a 404 error.

For an "item" page, you can return an HTML Form version with the query 
string of "?form=editentry".

Any other query string returns a 404 response.

(Note:  the "?form=addentry" parameter probably should have been 
implemented as a resource in its own right (possibly as a subresource of 
the related index).  One of these days, when I find the time to fix it, 
I will likely make that correction.)

Seairth Jacobs


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.