Re: Indicating a resource does not exist

On Thu, Jan 20, 2011 at 9:31 AM, Nathan <nathan@webr3.org> wrote:
> Joe Gregorio wrote:
>>
>> What's wrong with 404 Not Found?
>
>   404 Not Found
>   ...
>   The server has not found anything matching the effective request URI.
>   No indication is given of whether the condition is temporary or
>   permanent ...
>
> The best you can conclude from that is "don't know" the state of the
> resource, or if there is one.

OK, so 410 Gone if you want to indicate it is permanent.

  -joe

>
>> On Thu, Jan 20, 2011 at 7:51 AM, Nathan <nathan@webr3.org> wrote:
>>>
>>> Hi Again,
>>>
>>> I've analysed all the HTTP status codes in combination with different
>>> methods and response headers, and I can't find a way for a server to
>>> indicate that a resource /does not/ exist.
>>>
>>> Can anybody suggest a way of indicating this? or is there scope for a 4xx
>>> No
>>> Such Resource status (or similar)?
>>>
>>> Cheers,
>>>
>>> Nathan
>>>
>>>
>>
>>
>>
>
>



-- 
Joe Gregorio        http://bitworking.org

Received on Thursday, 20 January 2011 14:40:12 UTC