vote: status codes (was Re: [gcs-pcs-list] (possible) issue: what to do for redirects?)

Leigh Dodds leigh at ldodds.com
Wed Mar 8 12:02:52 EST 2006


Hi all,

My first post to the list, having signed up to catch up on latest
unAPI discussions.

Apologies for jumping in, especially if this has already
been debated, but I noticed this:

>    * 415 Unsupported Media Type - requests for a URI that is available
>    on the server but for a format that is not available for that URI

415 isn't really suitable here. It's for use when the server is
"refusing to service the request because the entity of the request is
in a format not supported by the request resource for the requested
method". There's no entity being sent here.

I think 406 Not Acceptable is erm, more acceptable:

"The resource identified by the request is only capable of generating
response entities which have content characteristics not acceptable
according to the accept headers sent in the request".

Granted unAPI isn't using Content Negotiation (i.e. Accept headers), but
it is a form of "poor man's content negotiation" (thats not meant to be 
derogatory!) in that that the desired content is being specified in the 
URL parameters rather than the HTTP protocol.

Cheers,

L.

-- 
Home: http://www.ldodds.com      | "Simplicity is the ultimate
Blog: http://www.ldodds.com/blog | sophistication" -- Leonardo da Vinci


More information about the gcs-pcs-list mailing list