# HG changeset patch # User Yaroslav Zhuravlev # Date 1581520247 0 # Node ID 2b494b8ff72d6bf1a7848eab5f7d7f40af846e87 # Parent 8a9b2efa92aa4162f04b43b55c3e5f2341b83420 Documented the "Entry exists" error in the API. diff --git a/xml/en/docs/http/ngx_http_api_module.xml b/xml/en/docs/http/ngx_http_api_module.xml --- a/xml/en/docs/http/ngx_http_api_module.xml +++ b/xml/en/docs/http/ngx_http_api_module.xml @@ -1053,6 +1053,7 @@ upstream “name” memory exhausted (UpstreamOutOfMemory), returns Error 404 - Unknown version (UnknownVersion), upstream not found (UpstreamNotFound), returns Error 405 - Method disabled (MethodDisabled), returns Error +409 - Entry exists (EntryExists), returns Error 415 - JSON error (JsonError), returns Error @@ -1240,7 +1241,8 @@ reading request body failed Bod 404 - Keyval not found (KeyvalNotFound), unknown version (UnknownVersion), returns Error 405 - Method disabled (MethodDisabled), returns Error -409 - Key already exists (KeyvalKeyExists), returns Error +409 - Entry exists (EntryExists), +key already exists (KeyvalKeyExists), returns Error 413 - Request Entity Too Large, returns Error 415 - JSON error (JsonError), returns Error @@ -1607,6 +1609,7 @@ reading request body failed Bod 404 - Unknown version (UnknownVersion), upstream not found (UpstreamNotFound), returns Error 405 - Method disabled (MethodDisabled), returns Error +409 - Entry exists (EntryExists), returns Error 415 - JSON error (JsonError), returns Error @@ -1794,7 +1797,8 @@ reading request body failed Bod 404 - Keyval not found (KeyvalNotFound), unknown version (UnknownVersion), returns Error 405 - Method disabled (MethodDisabled), returns Error -409 - Key already exists (KeyvalKeyExists), returns Error +409 - Entry exists (EntryExists), +key already exists (KeyvalKeyExists), returns Error 413 - Request Entity Too Large, returns Error 415 - JSON error (JsonError), returns Error diff --git a/yaml/nginx_api.yaml b/yaml/nginx_api.yaml --- a/yaml/nginx_api.yaml +++ b/yaml/nginx_api.yaml @@ -896,6 +896,10 @@ paths: description: Method disabled (*MethodDisabled*) schema: $ref: '#/definitions/NginxError' + '409': + description: Entry exists (*EntryExists*) + schema: + $ref: '#/definitions/NginxError' '415': description: JSON error (*JsonError*) schema: @@ -1145,7 +1149,9 @@ paths: schema: $ref: '#/definitions/NginxError' '409': - description: Key already exists (*KeyvalKeyExists*) + description: | + Entry exists (*EntryExists*), + key already exists (*KeyvalKeyExists*) schema: $ref: '#/definitions/NginxError' '413': @@ -1602,6 +1608,10 @@ paths: description: Method disabled (*MethodDisabled*) schema: $ref: '#/definitions/NginxError' + '409': + description: Entry exists (*EntryExists*) + schema: + $ref: '#/definitions/NginxError' '415': description: JSON error (*JsonError*) schema: @@ -1851,7 +1861,9 @@ paths: schema: $ref: '#/definitions/NginxError' '409': - description: Key already exists (*KeyvalKeyExists*) + description: | + Entry exists (*EntryExists*), + key already exists (*KeyvalKeyExists*) schema: $ref: '#/definitions/NginxError' '413':