# HG changeset patch # User Yaroslav Zhuravlev # Date 1580325686 0 # Node ID 78d4e25adf49cbccfd32f348a985414b17be9602 # Parent 407147d8020f3d877ab85aec00aeca2c1c9c8eeb Documented "BodyReadError" in the API. diff -r 407147d8020f -r 78d4e25adf49 xml/en/docs/http/ngx_http_api_module.xml --- a/xml/en/docs/http/ngx_http_api_module.xml Thu Dec 19 16:29:20 2019 +0300 +++ b/xml/en/docs/http/ngx_http_api_module.xml Wed Jan 29 19:21:26 2020 +0000 @@ -1011,6 +1011,7 @@ invalid “max_fails” (UpstreamBadMaxFails), invalid “fail_timeout” (UpstreamBadFailTimeout), invalid “slow_start” (UpstreamBadSlowStart), +reading request body failed BodyReadError), route is too long (UpstreamBadRoute), “service” is empty (UpstreamBadService), no resolver defined to resolve (UpstreamConfNoResolver), @@ -1083,6 +1084,7 @@ invalid “max_fails” (UpstreamBadMaxFails), invalid “fail_timeout” (UpstreamBadFailTimeout), invalid “slow_start” (UpstreamBadSlowStart), +reading request body failed BodyReadError), route is too long (UpstreamBadRoute), “service” is empty (UpstreamBadService), server “ID” address is immutable (UpstreamServerImmutable), @@ -1194,7 +1196,8 @@ invalid key format (KeyvalFormatError), key required (KeyvalFormatError), keyval timeout is not enabled (KeyvalFormatError), -only one key can be added (KeyvalFormatError), returns Error +only one key can be added (KeyvalFormatError), +reading request body failed BodyReadError), returns Error 404 - Keyval not found (KeyvalNotFound), returns Error 405 - Method disabled (MethodDisabled), returns Error 409 - Key already exists (KeyvalKeyExists), returns Error @@ -1222,7 +1225,8 @@ 400 - Invalid JSON (KeyvalFormatError), key required (KeyvalFormatError), keyval timeout is not enabled (KeyvalFormatError), -only one key can be updated (KeyvalFormatError), returns Error +only one key can be updated (KeyvalFormatError), +reading request body failed BodyReadError), returns Error 404 - Keyval not found (KeyvalNotFound), keyval key not found (KeyvalKeyNotFound), returns Error 405 - Method disabled (MethodDisabled), returns Error @@ -1545,7 +1549,8 @@ “service” is empty (UpstreamBadService), no resolver defined to resolve (UpstreamConfNoResolver), upstream “name” has no backup (UpstreamNoBackup), -upstream “name” memory exhausted (UpstreamOutOfMemory), returns Error +upstream “name” memory exhausted (UpstreamOutOfMemory), +reading request body failed BodyReadError), returns Error 404 - Upstream not found (UpstreamNotFound), returns Error 405 - Method disabled (MethodDisabled), returns Error 415 - JSON error (JsonError), returns Error @@ -1614,6 +1619,7 @@ invalid “max_fails” (UpstreamBadMaxFails), invalid “fail_timeout” (UpstreamBadFailTimeout), invalid “slow_start” (UpstreamBadSlowStart), +reading request body failed BodyReadError), “service” is empty (UpstreamBadService), server “ID” address is immutable (UpstreamServerImmutable), server “ID” weight is immutable (UpstreamServerWeightImmutable), @@ -1724,7 +1730,8 @@ invalid key format (KeyvalFormatError), key required (KeyvalFormatError), keyval timeout is not enabled (KeyvalFormatError), -only one key can be added (KeyvalFormatError), returns Error +only one key can be added (KeyvalFormatError), +reading request body failed BodyReadError), returns Error 404 - Keyval not found (KeyvalNotFound), returns Error 405 - Method disabled (MethodDisabled), returns Error 409 - Key already exists (KeyvalKeyExists), returns Error @@ -1752,7 +1759,8 @@ 400 - Invalid JSON (KeyvalFormatError), key required (KeyvalFormatError), keyval timeout is not enabled (KeyvalFormatError), -only one key can be updated (KeyvalFormatError), returns Error +only one key can be updated (KeyvalFormatError), +reading request body failed BodyReadError), returns Error 404 - Keyval not found (KeyvalNotFound), keyval key not found (KeyvalKeyNotFound), returns Error 405 - Method disabled (MethodDisabled), returns Error diff -r 407147d8020f -r 78d4e25adf49 yaml/nginx_api.yaml --- a/yaml/nginx_api.yaml Thu Dec 19 16:29:20 2019 +0300 +++ b/yaml/nginx_api.yaml Wed Jan 29 19:21:26 2020 +0000 @@ -776,6 +776,7 @@ invalid “*max_fails*” (*UpstreamBadMaxFails*), invalid “*fail_timeout*” (*UpstreamBadFailTimeout*), invalid “*slow_start*” (*UpstreamBadSlowStart*), + reading request body failed *BodyReadError*), route is too long (*UpstreamBadRoute*), “*service*” is empty (*UpstreamBadService*), no resolver defined to resolve (*UpstreamConfNoResolver*), @@ -873,6 +874,7 @@ invalid “*max_fails*” (*UpstreamBadMaxFails*), invalid “*fail_timeout*” (*UpstreamBadFailTimeout*), invalid “*slow_start*” (*UpstreamBadSlowStart*), + reading request body failed *BodyReadError*), route is too long (*UpstreamBadRoute*), “*service*” is empty (*UpstreamBadService*), server “**ID**” address is immutable (*UpstreamServerImmutable*), @@ -1016,7 +1018,8 @@ invalid key format (*KeyvalFormatError*), key required (*KeyvalFormatError*), keyval timeout is not enabled (*KeyvalFormatError*), - only one key can be added (*KeyvalFormatError*) + only one key can be added (*KeyvalFormatError*), + reading request body failed *BodyReadError*) schema: $ref: '#/definitions/NginxError' '404': @@ -1075,7 +1078,8 @@ Invalid JSON (*KeyvalFormatError*), key required (*KeyvalFormatError*), keyval timeout is not enabled (*KeyvalFormatError*), - only one key can be updated (*KeyvalFormatError*) + only one key can be updated (*KeyvalFormatError*), + reading request body failed *BodyReadError*) schema: $ref: '#/definitions/NginxError' '404': @@ -1442,7 +1446,8 @@ “*service*” is empty (*UpstreamBadService*), no resolver defined to resolve (*UpstreamConfNoResolver*), upstream “**name**” has no backup (*UpstreamNoBackup*), - upstream “**name**” memory exhausted (*UpstreamOutOfMemory*) + upstream “**name**” memory exhausted (*UpstreamOutOfMemory*), + reading request body failed *BodyReadError*) schema: $ref: '#/definitions/NginxError' '404': @@ -1537,6 +1542,7 @@ invalid “*max_fails*” (*UpstreamBadMaxFails*), invalid “*fail_timeout*” (*UpstreamBadFailTimeout*), invalid “*slow_start*” (*UpstreamBadSlowStart*), + reading request body failed *BodyReadError*), “*service*” is empty (*UpstreamBadService*), server “**ID**” address is immutable (*UpstreamServerImmutable*), server “**ID**” weight is immutable (*UpstreamServerWeightImmutable*), @@ -1679,7 +1685,8 @@ invalid key format (*KeyvalFormatError*), key required (*KeyvalFormatError*), keyval timeout is not enabled (*KeyvalFormatError*), - only one key can be added (*KeyvalFormatError*) + only one key can be added (*KeyvalFormatError*), + reading request body failed *BodyReadError*) schema: $ref: '#/definitions/NginxError' '404': @@ -1739,7 +1746,8 @@ Invalid JSON (*KeyvalFormatError*), key required (*KeyvalFormatError*), keyval timeout is not enabled (*KeyvalFormatError*), - only one key can be updated (*KeyvalFormatError*) + only one key can be updated (*KeyvalFormatError*), + reading request body failed *BodyReadError*) schema: $ref: '#/definitions/NginxError' '404':