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, "