diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-04-19 15:30:56 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-04-19 15:30:56 +0000 |
commit | 7bdb720d6a7b75021ca7cea17d6f3199b5acf4ca (patch) | |
tree | 1ff27cb0b6a00fc3a58aee44f869baa6574f0329 /src/http/ngx_http_special_response.c | |
parent | afae3fd4a4ba16147fa7a4db8e4d90799ee3b56b (diff) | |
download | nginx-release-0.3.40.tar.gz nginx-release-0.3.40.zip |
nginx-0.3.40-RELEASE importrelease-0.3.40
*) Feature: the ngx_http_dav_module supports the MKCOL method.
*) Feature: the "create_full_put_path" directive.
*) Feature: the "$limit_rate" variable.
Diffstat (limited to 'src/http/ngx_http_special_response.c')
-rw-r--r-- | src/http/ngx_http_special_response.c | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c index f221276c6..d1072a9af 100644 --- a/src/http/ngx_http_special_response.c +++ b/src/http/ngx_http_special_response.c @@ -107,6 +107,14 @@ static char error_408_page[] = ; +static char error_409_page[] = +"<html>" CRLF +"<head><title>409 Conflict</title></head>" CRLF +"<body bgcolor=\"white\">" CRLF +"<center><h1>409 Conflict</h1></center>" CRLF +; + + static char error_410_page[] = "<html>" CRLF "<head><title>410 Gone</title></head>" CRLF @@ -139,6 +147,14 @@ static char error_414_page[] = ; +static char error_415_page[] = +"<html>" CRLF +"<head><title>415 Unsupported Media Type</title></head>" CRLF +"<body bgcolor=\"white\">" CRLF +"<center><h1>415 Unsupported Media Type</h1></center>" CRLF +; + + static char error_416_page[] = "<html>" CRLF "<head><title>416 Requested Range Not Satisfiable</title></head>" CRLF @@ -197,6 +213,14 @@ static char error_504_page[] = ; +static char error_507_page[] = +"<html>" CRLF +"<head><title>507 Insufficient Storage</title></head>" CRLF +"<body bgcolor=\"white\">" CRLF +"<center><h1>507 Insufficient Storage</h1></center>" CRLF +; + + static ngx_str_t error_pages[] = { ngx_null_string, /* 201, 204 */ @@ -219,13 +243,13 @@ static ngx_str_t error_pages[] = { ngx_string(error_406_page), ngx_null_string, /* 407 */ ngx_string(error_408_page), - ngx_null_string, /* 409 */ + ngx_string(error_409_page), ngx_string(error_410_page), ngx_string(error_411_page), ngx_null_string, /* 412 */ ngx_string(error_413_page), ngx_string(error_414_page), - ngx_null_string, /* 415 */ + ngx_string(error_415_page), ngx_string(error_416_page), #define NGX_HTTP_LEVEL_400 17 @@ -238,7 +262,10 @@ static ngx_str_t error_pages[] = { ngx_string(error_501_page), ngx_string(error_502_page), ngx_string(error_503_page), - ngx_string(error_504_page) + ngx_string(error_504_page), + ngx_null_string, /* 505 */ + ngx_null_string, /* 506 */ + ngx_string(error_507_page) }; @@ -323,6 +350,7 @@ ngx_http_special_response_handler(ngx_http_request_t *r, ngx_int_t error) if (error == NGX_HTTP_CREATED) { /* 201 */ err = 0; + r->header_only = 1; } else if (error == NGX_HTTP_NO_CONTENT) { /* 204 */ |