From 57648296b59d222968f6196ac65449c5c123a7de Mon Sep 17 00:00:00 2001 From: Tagadda <36127788+Tagadda@users.noreply.github.com> Date: Mon, 13 Aug 2018 13:02:25 +0200 Subject: [PATCH] 206 Created --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 1d6001c..cd66ded 100644 --- a/index.php +++ b/index.php @@ -20,7 +20,7 @@ Flight::route("POST /polls", function () { $request_json = $request->data; $poll = Poll::create_poll($request_json); if ($poll) - Flight::json(format_poll($poll), 206); + Flight::json(format_poll($poll), 201); else Flight::halt(403, "

403 Forbidden

Invalid data.

"); }