# HG changeset patch # User Yaroslav Zhuravlev # Date 1581520247 0 # Node ID 2b494b8ff72d6bf1a7848eab5f7d7f40af846e87 # Parent 8a9b2efa92aa4162f04b43b55c3e5f2341b83420 Documented the "Entry exists" error in the API. diff -r 8a9b2efa92aa -r 2b494b8ff72d xml/en/docs/http/ngx_http_api_module.xml --- a/xml/en/docs/http/ngx_http_api_module.xml Wed Feb 12 15:10:47 2020 +0000 +++ b/xml/en/docs/http/ngx_http_api_module.xml Wed Feb 12 15:10:47 2020 +0000 @@ -1053,6 +1053,7 @@ 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 @@ 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 @@ 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 @@ 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 -r 8a9b2efa92aa -r 2b494b8ff72d yaml/nginx_api.yaml --- a/yaml/nginx_api.yaml Wed Feb 12 15:10:47 2020 +0000 +++ b/yaml/nginx_api.yaml Wed Feb 12 15:10:47 2020 +0000 @@ -896,6 +896,10 @@ 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 @@ 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 @@ 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 @@ schema: $ref: '#/definitions/NginxError' '409': - description: Key already exists (*KeyvalKeyExists*) + description: | + Entry exists (*EntryExists*), + key already exists (*KeyvalKeyExists*) schema: $ref: '#/definitions/NginxError' '413':