303 See Other

This commit is contained in:
Igor Sysoev 2010-06-18 14:58:52 +00:00
parent 841fae0f47
commit b09cdc4156
3 changed files with 11 additions and 2 deletions

View file

@ -68,7 +68,7 @@ static ngx_str_t ngx_http_status_lines[] = {
ngx_string("301 Moved Permanently"),
ngx_string("302 Moved Temporarily"),
ngx_null_string, /* "303 See Other" */
ngx_string("303 See Other"),
ngx_string("304 Not Modified"),
/* ngx_null_string, */ /* "305 Use Proxy" */

View file

@ -72,6 +72,7 @@
#define NGX_HTTP_SPECIAL_RESPONSE 300
#define NGX_HTTP_MOVED_PERMANENTLY 301
#define NGX_HTTP_MOVED_TEMPORARILY 302
#define NGX_HTTP_SEE_OTHER 303
#define NGX_HTTP_NOT_MODIFIED 304
#define NGX_HTTP_BAD_REQUEST 400

View file

@ -65,6 +65,14 @@ static char ngx_http_error_302_page[] =
;
static char ngx_http_error_303_page[] =
"<html>" CRLF
"<head><title>303 See Other</title></head>" CRLF
"<body bgcolor=\"white\">" CRLF
"<center><h1>303 See Other</h1></center>" CRLF
;
static char ngx_http_error_400_page[] =
"<html>" CRLF
"<head><title>400 Bad Request</title></head>" CRLF
@ -281,7 +289,7 @@ static ngx_str_t ngx_http_error_pages[] = {
/* ngx_null_string, */ /* 300 */
ngx_string(ngx_http_error_301_page),
ngx_string(ngx_http_error_302_page),
ngx_null_string, /* 303 */
ngx_string(ngx_http_error_303_page),
#define NGX_HTTP_LAST_LEVEL_300 304
#define NGX_HTTP_LEVEL_300 (NGX_HTTP_LAST_LEVEL_300 - 301)