aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-06-07 13:38:39 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-06-07 13:38:39 +0000
commit1f5cf36a271e21e88e8fbc29dfd7828dc20b84eb (patch)
treed8ab49961591624445f7545a10c4f5d18c15a894
parent7935d4bff771c73a257bfd58f7301b3665d641ce (diff)
downloadnginx-1f5cf36a271e21e88e8fbc29dfd7828dc20b84eb.tar.gz
nginx-1f5cf36a271e21e88e8fbc29dfd7828dc20b84eb.zip
202 Accepted status code
-rw-r--r--src/http/modules/perl/nginx.pm2
-rw-r--r--src/http/ngx_http_header_filter_module.c2
-rw-r--r--src/http/ngx_http_request.h1
3 files changed, 4 insertions, 1 deletions
diff --git a/src/http/modules/perl/nginx.pm b/src/http/modules/perl/nginx.pm
index e259e9ebb..d581f4015 100644
--- a/src/http/modules/perl/nginx.pm
+++ b/src/http/modules/perl/nginx.pm
@@ -14,6 +14,7 @@ our @EXPORT = qw(
HTTP_OK
HTTP_CREATED
+ HTTP_ACCEPTED
HTTP_NO_CONTENT
HTTP_PARTIAL_CONTENT
@@ -59,6 +60,7 @@ use constant DECLINED => -5;
use constant HTTP_OK => 200;
use constant HTTP_CREATED => 201;
+use constant HTTP_ACCEPTED => 202;
use constant HTTP_NO_CONTENT => 204;
use constant HTTP_PARTIAL_CONTENT => 206;
diff --git a/src/http/ngx_http_header_filter_module.c b/src/http/ngx_http_header_filter_module.c
index c62d7233f..ac7f9f957 100644
--- a/src/http/ngx_http_header_filter_module.c
+++ b/src/http/ngx_http_header_filter_module.c
@@ -53,7 +53,7 @@ static ngx_str_t ngx_http_status_lines[] = {
ngx_string("200 OK"),
ngx_string("201 Created"),
- ngx_null_string, /* "202 Accepted" */
+ ngx_string("202 Accepted"),
ngx_null_string, /* "203 Non-Authoritative Information" */
ngx_string("204 No Content"),
ngx_null_string, /* "205 Reset Content" */
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h
index 0559b4650..a200972f9 100644
--- a/src/http/ngx_http_request.h
+++ b/src/http/ngx_http_request.h
@@ -64,6 +64,7 @@
#define NGX_HTTP_OK 200
#define NGX_HTTP_CREATED 201
+#define NGX_HTTP_ACCEPTED 202
#define NGX_HTTP_NO_CONTENT 204
#define NGX_HTTP_PARTIAL_CONTENT 206