Re: Annotations database down; GET still returns 200

Matthew Wilson wrote::

>Eric Prud'hommeaux wrote:
>> Whether "no annotations found" is a 404 has been a long standing issue.
>> A stronger case could be made for "no annotations found 'cause the db
>> isnt abswering." The hope was that people could play with the server
>> even if it wasn't talking to a database. Perhaps they could "play with"
>> it even if they got error messages back? thinking...
>
>The problem is for a tool trying to use the database: it has no 
>indication of the error status.
>
I agree.  One of the following status codes would be more appropriate to 
return when the database is down:

   500 Internal Server Error
   503 Service Unavailable

-- 
Mark Smith
LDAP Book Information: http://www.ldapbook.com/
What's Next:           http://www.pearlcrescent.com/

Received on Friday, 19 March 2004 15:55:09 UTC