From 2ee47bd902d3dcc509ed85c9e3cdb3d26e10ca03 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Fri, 13 Sep 2013 16:14:13 +0200 Subject: [PATCH] return 404 when creating a comment for a non-existing URI --- isso/views/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isso/views/comment.py b/isso/views/comment.py index b914410..53084d0 100644 --- a/isso/views/comment.py +++ b/isso/views/comment.py @@ -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)