API: change ststus code on unfound user

This commit is contained in:
Sagi Dayan 2015-05-12 17:18:26 +03:00
parent 114bbdfe8b
commit 336390d094

View file

@ -67,7 +67,7 @@ def getUserByToken(token):
mimetype="application/json") # Real response!
return Response(response=json.dumps({'message' : 'No User Found'}),
status=403,
status=400,
mimetype="application/json")