diff options
Diffstat (limited to 'src/civetweb/test/error.lua')
-rw-r--r-- | src/civetweb/test/error.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/civetweb/test/error.lua b/src/civetweb/test/error.lua new file mode 100644 index 00000000..b78d4ac9 --- /dev/null +++ b/src/civetweb/test/error.lua @@ -0,0 +1,12 @@ +mg.write("HTTP/1.0 200 OK\r\n")
+mg.write("Content-Type: text/html\r\n")
+mg.write("\r\n")
+mg.write([[<html><body>
+ <p>Lua error handler:</p>
+ <p>Status code: ]])
+
+mg.write(tostring(mg.request_info.status))
+
+mg.write([[</p>
+</body></html>
+]])
\ No newline at end of file |