Mercurial > hg > nginx-quic
comparison 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 |
comparison
equal
deleted
inserted
replaced
23:f540a63026c9 | 24:77c7629a2627 |
---|---|
1 | |
2 | |
3 #include <ngx_config.h> | |
4 #if 0 | |
5 #include <ngx_core.h> | |
6 #endif | |
7 #include <ngx_http.h> | |
8 | |
9 | |
10 int ngx_http_special_response(ngx_http_request_t *r, int error) | |
11 { | |
12 switch (error) { | |
13 | |
14 default: | |
15 r->headers_out.status = error; | |
16 return ngx_http_header_filter(r); | |
17 | |
18 } | |
19 | |
20 return ngx_http_error(r, error); | |
21 } |