From 0de7d2f2cc1856d01e810c76058d3c5f685a24af Mon Sep 17 00:00:00 2001 From: Stanisław Zagórowski Date: Thu, 11 Jan 2024 17:04:12 +0100 Subject: status codes --- example/reluax.luax | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example') diff --git a/example/reluax.luax b/example/reluax.luax index a343826..2562fb1 100644 --- a/example/reluax.luax +++ b/example/reluax.luax @@ -4,10 +4,10 @@ math.randomseed(os.time()) local function route(path) if path == '/' then - return index() + return 200, index() end - return + return 404, Error 404 -- cgit v1.3.1