diff src/http/ngx_http_special_response.c @ 24:77c7629a2627

nginx-0.0.1-2002-12-10-21:05:12 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 10 Dec 2002 18:05:12 +0000
parents
children 53cb81681040
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/src/http/ngx_http_special_response.c
@@ -0,0 +1,21 @@
+
+
+#include <ngx_config.h>
+#if 0
+#include <ngx_core.h>
+#endif
+#include <ngx_http.h>
+
+
+int ngx_http_special_response(ngx_http_request_t *r, int error)
+{
+    switch (error) {
+
+    default:
+        r->headers_out.status = error;
+        return ngx_http_header_filter(r);
+
+    }
+
+    return ngx_http_error(r, error);
+}