From: Jeff Trawick Date: Tue, 12 Dec 2000 20:34:20 +0000 (+0000) Subject: Change a couple of socket call failures from 404 errors to X-Git-Tag: APACHE_2_0_ALPHA_9~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3d09c32f769d8c8b5b024e71435d20d1f2a88bd;p=apache Change a couple of socket call failures from 404 errors to 500 errors. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87305 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c index 1b7cbed0c9..c514ba80bf 100644 --- a/modules/generators/mod_cgid.c +++ b/modules/generators/mod_cgid.c @@ -808,7 +808,7 @@ static int cgid_handler(request_rec *r) env = ap_create_environment(r->pool, r->subprocess_env); if ((sd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { - return log_scripterror(r, conf, HTTP_NOT_FOUND, 0, + return log_scripterror(r, conf, HTTP_INTERNAL_SERVER_ERROR, 0, "unable to create socket to cgi daemon"); } memset(&unix_addr, 0, sizeof(unix_addr)); @@ -816,7 +816,7 @@ static int cgid_handler(request_rec *r) strcpy(unix_addr.sun_path, conf->sockname); if (connect(sd, (struct sockaddr *)&unix_addr, sizeof(unix_addr)) < 0) { - return log_scripterror(r, conf, HTTP_NOT_FOUND, 0, + return log_scripterror(r, conf, HTTP_INTERNAL_SERVER_ERROR, 0, "unable to connect to cgi daemon"); }