File: error.lua

package info (click to toggle)
civetweb 1.16%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,184 kB
  • sloc: ansic: 32,473; cpp: 1,374; sh: 480; javascript: 204; makefile: 120; php: 11; perl: 6; python: 3
file content (12 lines) | stat: -rw-r--r-- 253 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
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>
]])