]> git.kaiwu.me - nginx.git/commitdiff
202 Accepted status code
authorIgor Sysoev <igor@sysoev.ru>
Mon, 7 Jun 2010 13:38:39 +0000 (13:38 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 7 Jun 2010 13:38:39 +0000 (13:38 +0000)
src/http/modules/perl/nginx.pm
src/http/ngx_http_header_filter_module.c
src/http/ngx_http_request.h

index e259e9ebba69838d5c9248fa4e6b92375186512a..d581f40151c1c12da06c8075fc34ff61c51cfe63 100644 (file)
@@ -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;
 
index c62d7233fcb0cec4768e5818d8052e9ef0399b8f..ac7f9f95716788fbfa2b031c1810e2168051de29 100644 (file)
@@ -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" */
index 0559b46502f1d7b7c750cb6c2da62673d9519f14..a200972f933c0fdf44d2e8b55140ea964685ba15 100644 (file)
@@ -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