+
+
+/*********************************************************************
+ *
+ * Function : cgi_error_404
+ *
+ * Description : CGI function that is called if an unknow action was
+ * given.
+ *
+ * Parameters :
+ * 1 : csp = Current client state (buffers, headers, etc...)
+ * 2 : rsp = http_response data structure for output
+ * 3 : parameters = map of cgi parameters
+ *
+ * Returns : 0
+ *
+ *********************************************************************/
+int cgi_error_404(struct client_state *csp,
+ struct http_response *rsp,
+ struct map *parameters)
+{
+ struct map *exports = default_exports(csp, NULL);
+
+ rsp->status = strdup("404 JunkBuster configuration page not found");
+ rsp->body = template_load(csp, "cgi-error-404");
+ template_fill(&rsp->body, exports);
+ free_map(exports);
+ return 0;
+}
+
+