+
+static int donotfound(struct child *ch, struct hthead *req, int fd, void (*chinit)(void *), void *idata)
+{
+ simpleerror(fd, 404, "Not Found", "The requested URL has no corresponding resource.");
+ return(0);
+}
+
+static struct chandler i_notfound = {
+ .handle = donotfound,
+};
+
+static struct child s_notfound = {
+ .name = ".notfound",
+ .iface = &i_notfound,
+};
+struct child *notfound = &s_notfound;