Răsfoiți Sursa

change GET response from GONE to NOT FOUND when item is not found

deronnax 11 ani în urmă
părinte
comite
5b8333c2b0
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      radicale/__init__.py

+ 1 - 1
radicale/__init__.py

@@ -423,7 +423,7 @@ class Application(object):
                     collection.tag, collection.headers, items)
                 etag = item.etag
             else:
-                return client.GONE, {}, None
+                return client.NOT_FOUND, {}, None
         else:
             # Create the collection if it does not exist
             if not collection.exists: