From: Jason Robinson Date: Sun, 30 Jun 2013 22:14:55 +0000 (+0300) Subject: Status code 200 is returned by Diaspora* on a successful addition of user to aspect X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0d698df14f27fb9f8d5a40361e2ca574e5b37870;p=diaspy.git Status code 200 is returned by Diaspora* on a successful addition of user to aspect --- diff --git a/diaspy/models.py b/diaspy/models.py index 3fbfd7d..f314ec3 100644 --- a/diaspy/models.py +++ b/diaspy/models.py @@ -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()