From 8f25cbc2ca3fdf3afb57b42c9d488090298e64a2 Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Sun, 6 Jun 2021 13:09:31 +0930 Subject: [PATCH] updated error on not found to 404, accidentally had it as 400 --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index c04add1..e683cbd 100644 --- a/app.py +++ b/app.py @@ -53,7 +53,7 @@ class Post(Resource): } return _post, 200 - return "Post not found", 400 + return "Post not found", 404 class Posts(Resource):