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); } }