From aa3fbd72d552403af99ec673c593a68d5331b8f6 Mon Sep 17 00:00:00 2001 From: Gregorio Chiko Putra Date: Fri, 8 Sep 2017 15:15:23 +0700 Subject: [PATCH] Have to be logged in to create or nonactivate categories --- App/Controllers/Posts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/Controllers/Posts.php b/App/Controllers/Posts.php index 06aba1c..f777a30 100644 --- a/App/Controllers/Posts.php +++ b/App/Controllers/Posts.php @@ -169,7 +169,7 @@ class Posts 'token' => Token::generate() ]); } else { - throw new \Exception("Page not found", 404); + throw new \Exception("Bad request", 400); } }