API: change ststus code on unfound user
This commit is contained in:
parent
114bbdfe8b
commit
336390d094
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ def getUserByToken(token):
|
||||||
mimetype="application/json") # Real response!
|
mimetype="application/json") # Real response!
|
||||||
|
|
||||||
return Response(response=json.dumps({'message' : 'No User Found'}),
|
return Response(response=json.dumps({'message' : 'No User Found'}),
|
||||||
status=403,
|
status=400,
|
||||||
mimetype="application/json")
|
mimetype="application/json")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue