-- httpserver-error.lua -- Part of nodemcu-httpserver, handles sending error pages to client. -- Author: Marcos Kirsch, Gregor Hartmann return function (connection, req, args) req.code = args.code local statusString = dofile("httpserver-header.lc")(connection, req.code, "html", false, req.headers) connection:send("" .. req.code .. " - " .. statusString .. "

" .. req.code .. " - " .. statusString .. "

\r\n") end