From 0d698df14f27fb9f8d5a40361e2ca574e5b37870 Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Mon, 1 Jul 2013 01:14:55 +0300 Subject: [PATCH] Status code 200 is returned by Diaspora* on a successful addition of user to aspect --- diaspy/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.25.1