202 Accepted status code
This commit is contained in:
parent
9f09773a48
commit
6f632aaadf
3 changed files with 4 additions and 1 deletions
|
@ -14,6 +14,7 @@ our @EXPORT = qw(
|
||||||
|
|
||||||
HTTP_OK
|
HTTP_OK
|
||||||
HTTP_CREATED
|
HTTP_CREATED
|
||||||
|
HTTP_ACCEPTED
|
||||||
HTTP_NO_CONTENT
|
HTTP_NO_CONTENT
|
||||||
HTTP_PARTIAL_CONTENT
|
HTTP_PARTIAL_CONTENT
|
||||||
|
|
||||||
|
@ -59,6 +60,7 @@ use constant DECLINED => -5;
|
||||||
|
|
||||||
use constant HTTP_OK => 200;
|
use constant HTTP_OK => 200;
|
||||||
use constant HTTP_CREATED => 201;
|
use constant HTTP_CREATED => 201;
|
||||||
|
use constant HTTP_ACCEPTED => 202;
|
||||||
use constant HTTP_NO_CONTENT => 204;
|
use constant HTTP_NO_CONTENT => 204;
|
||||||
use constant HTTP_PARTIAL_CONTENT => 206;
|
use constant HTTP_PARTIAL_CONTENT => 206;
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ static ngx_str_t ngx_http_status_lines[] = {
|
||||||
|
|
||||||
ngx_string("200 OK"),
|
ngx_string("200 OK"),
|
||||||
ngx_string("201 Created"),
|
ngx_string("201 Created"),
|
||||||
ngx_null_string, /* "202 Accepted" */
|
ngx_string("202 Accepted"),
|
||||||
ngx_null_string, /* "203 Non-Authoritative Information" */
|
ngx_null_string, /* "203 Non-Authoritative Information" */
|
||||||
ngx_string("204 No Content"),
|
ngx_string("204 No Content"),
|
||||||
ngx_null_string, /* "205 Reset Content" */
|
ngx_null_string, /* "205 Reset Content" */
|
||||||
|
|
|
@ -64,6 +64,7 @@
|
||||||
|
|
||||||
#define NGX_HTTP_OK 200
|
#define NGX_HTTP_OK 200
|
||||||
#define NGX_HTTP_CREATED 201
|
#define NGX_HTTP_CREATED 201
|
||||||
|
#define NGX_HTTP_ACCEPTED 202
|
||||||
#define NGX_HTTP_NO_CONTENT 204
|
#define NGX_HTTP_NO_CONTENT 204
|
||||||
#define NGX_HTTP_PARTIAL_CONTENT 206
|
#define NGX_HTTP_PARTIAL_CONTENT 206
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue