1mg.write("HTTP/1.0 200 OK\r\n") 2mg.write("Content-Type: text/html\r\n") 3mg.write("\r\n") 4mg.write([[<html><body> 5 <p>Lua error handler:</p> 6 <p>Status code: ]]) 7 8mg.write(tostring(mg.request_info.status)) 9 10mg.write([[</p> 11</body></html> 12]])