Status code 200 is returned by Diaspora* on a successful addition of user to aspect
authorJason Robinson <jaywink@basshero.org>
Sun, 30 Jun 2013 22:14:55 +0000 (01:14 +0300)
committerJason Robinson <jaywink@basshero.org>
Sun, 30 Jun 2013 22:14:55 +0000 (01:14 +0300)
diaspy/models.py

index 3fbfd7db530dded00f2fa91096b1f02bb891e831..f314ec32be46b305b279e880294c32ca6e83aa2d 100644 (file)
@@ -34,7 +34,7 @@ class Aspect():
             raise Exception('duplicate record, user already exists in aspect: {0}'.format(request.status_code))
         elif request.status_code == 404:
             raise Exception('user not found from this pod: {0}'.format(request.status_code))
-        elif request.status_code != 201:
+        elif request.status_code != 200:
             raise Exception('wrong status code: {0}'.format(request.status_code))
         return request.json()