# HG changeset patch # User Yaroslav Zhuravlev # Date 1576762160 -10800 # Node ID 407147d8020f3d877ab85aec00aeca2c1c9c8eeb # Parent 70119804679ce7e5f1c556adcbb1386732de7110 Documented 413 error for PATCH and POST methods 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 @@ -9,7 +9,7 @@ + rev="3">
@@ -31,6 +31,15 @@ modules. +When using the PATCH or POST methods, +make sure that the payload does not exceed the +buffer size +for reading the client request body, otherwise, the + +error may be returned. + + + This module is available as part of our commercial subscription. @@ -1189,6 +1198,7 @@ only one key can be added (Keyv 404 - Keyval not found (KeyvalNotFound), returns Error 405 - Method disabled (MethodDisabled), returns Error 409 - Key already exists (KeyvalKeyExists), returns Error +413 - Request Entity Too Large, returns Error 415 - JSON error (JsonError), returns Error @@ -1216,6 +1226,7 @@ only one key can be updated (Ke 404 - Keyval not found (KeyvalNotFound), keyval key not found (KeyvalKeyNotFound), returns Error 405 - Method disabled (MethodDisabled), returns Error +413 - Request Entity Too Large, returns Error 415 - JSON error (JsonError), returns Error @@ -1717,6 +1728,7 @@ only one key can be added (Keyv 404 - Keyval not found (KeyvalNotFound), returns Error 405 - Method disabled (MethodDisabled), returns Error 409 - Key already exists (KeyvalKeyExists), returns Error +413 - Request Entity Too Large, returns Error 415 - JSON error (JsonError), returns Error @@ -1744,6 +1756,7 @@ only one key can be updated (Ke 404 - Keyval not found (KeyvalNotFound), keyval key not found (KeyvalKeyNotFound), returns Error 405 - Method disabled (MethodDisabled), returns Error +413 - Request Entity Too Large, returns Error 415 - JSON error (JsonError), returns Error diff --git a/xml/en/docs/http/ngx_http_api_module_head.xml b/xml/en/docs/http/ngx_http_api_module_head.xml --- a/xml/en/docs/http/ngx_http_api_module_head.xml +++ b/xml/en/docs/http/ngx_http_api_module_head.xml @@ -9,7 +9,7 @@ + rev="3">
@@ -31,6 +31,15 @@ modules. +When using the PATCH or POST methods, +make sure that the payload does not exceed the +buffer size +for reading the client request body, otherwise, the + +error may be returned. + + + This module is available as part of our commercial subscription. diff --git a/yaml/nginx_api.yaml b/yaml/nginx_api.yaml --- a/yaml/nginx_api.yaml +++ b/yaml/nginx_api.yaml @@ -1031,6 +1031,10 @@ paths: description: Key already exists (*KeyvalKeyExists*) schema: $ref: '#/definitions/NginxError' + '413': + description: Request Entity Too Large + schema: + $ref: '#/definitions/NginxError' '415': description: JSON error (*JsonError*) schema: @@ -1084,6 +1088,10 @@ paths: description: Method disabled (*MethodDisabled*) schema: $ref: '#/definitions/NginxError' + '413': + description: Request Entity Too Large + schema: + $ref: '#/definitions/NginxError' '415': description: JSON error (*JsonError*) schema: @@ -1687,6 +1695,10 @@ paths: description: Key already exists (*KeyvalKeyExists*) schema: $ref: '#/definitions/NginxError' + '413': + description: Request Entity Too Large + schema: + $ref: '#/definitions/NginxError' '415': description: JSON error (*JsonError*) schema: @@ -1740,6 +1752,10 @@ paths: description: Method disabled (*MethodDisabled*) schema: $ref: '#/definitions/NginxError' + '413': + description: Request Entity Too Large + schema: + $ref: '#/definitions/NginxError' '415': description: JSON error (*JsonError*) schema: