aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorStanisław Zagórowski <hasohasacz@gmail.com>2024-01-11 17:04:12 +0100
committerStanisław Zagórowski <hasohasacz@gmail.com>2024-01-11 17:04:12 +0100
commit0de7d2f2cc1856d01e810c76058d3c5f685a24af (patch)
tree99ec50ef588a1c4c8e5ec4257ee5b7ef139019cb /example
parentf45abfdf2150d8136e3da48e1daba5473030c0be (diff)
status codes
Diffstat (limited to 'example')
-rw-r--r--example/reluax.luax4
1 files changed, 2 insertions, 2 deletions
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 <html>
+ return 404, <html>
<head>
<title>Error 404</title>
</head>