return 404 when creating a comment for a non-existing URI
This commit is contained in:
parent
021b672ee2
commit
2ee47bd902
@ -44,7 +44,7 @@ class requires:
|
||||
def create(app, environ, request, uri):
|
||||
|
||||
if not utils.urlexists(app.ORIGIN, uri):
|
||||
return Response('URI does not exist', 400)
|
||||
return Response('URI does not exist', 404)
|
||||
|
||||
try:
|
||||
data = json.loads(request.data)
|
||||
|
Loading…
Reference in New Issue
Block a user