# HG changeset patch # User Yaroslav Zhuravlev # Date 1581520247 0 # Node ID 8a9b2efa92aa4162f04b43b55c3e5f2341b83420 # Parent 20dbb29cbe05fbd902f1040b39eea0eeb64f1f42 Documented the "Method disabled" 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 @@ -343,6 +343,7 @@ Possible responses: 204 - Success 404 - Unknown version (UnknownVersion), returns Error +405 - Method disabled (MethodDisabled), returns Error @@ -382,6 +383,7 @@ Possible responses: 204 - Success 404 - Unknown version (UnknownVersion), returns Error +405 - Method disabled (MethodDisabled), returns Error @@ -1973,6 +1975,7 @@ Possible responses: 204 - Success 404 - Unknown version (UnknownVersion), returns Error +405 - Method disabled (MethodDisabled), returns Error diff --git a/yaml/nginx_api.yaml b/yaml/nginx_api.yaml --- a/yaml/nginx_api.yaml +++ b/yaml/nginx_api.yaml @@ -118,6 +118,10 @@ paths: description: Unknown version (*UnknownVersion*) schema: $ref: '#/definitions/NginxError' + '405': + description: Method disabled (*MethodDisabled*) + schema: + $ref: '#/definitions/NginxError' /connections: get: tags: @@ -157,6 +161,10 @@ paths: description: Unknown version (*UnknownVersion*) schema: $ref: '#/definitions/NginxError' + '405': + description: Method disabled (*MethodDisabled*) + schema: + $ref: '#/definitions/NginxError' /slabs/: get: tags: @@ -2074,6 +2082,10 @@ paths: description: Unknown version (*UnknownVersion*) schema: $ref: '#/definitions/NginxError' + '405': + description: Method disabled (*MethodDisabled*) + schema: + $ref: '#/definitions/NginxError' ### ###DEFINITIONS ###