aboutsummaryrefslogtreecommitdiff
path: root/err.c
diff options
context:
space:
mode:
Diffstat (limited to 'err.c')
-rw-r--r--err.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/err.c b/err.c
new file mode 100644
index 0000000..d6f66ad
--- /dev/null
+++ b/err.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+
+void
+srverr(char *err)
+{
+ char title[] = "500 Internal Server Error";
+
+ printf("Status: %s\n", title);
+ printf("Content-Type: text/html\n\n");
+ #include "t/head.tc"
+ #include "t/err.tc"
+ #include "t/foot.tc"
+} \ No newline at end of file