# HG changeset patch # User Yaroslav Zhuravlev # Date 1504700138 -10800 # Node ID 593dfdc524ae1533f2852e74db9348f263511534 # Parent a810103f8a754298adc75c932f9f8c4022797d08 Documented the 405 error (Method Disabled) in yaml. diff -r a810103f8a75 -r 593dfdc524ae xml/en/docs/http/ngx_http_api_module.xml --- a/xml/en/docs/http/ngx_http_api_module.xml Wed Sep 27 21:55:34 2017 +0300 +++ b/xml/en/docs/http/ngx_http_api_module.xml Wed Sep 06 15:15:38 2017 +0300 @@ -378,6 +378,7 @@ 204 - Success 404 - Slab not found (SlabNotFound), returns Error +405 - Method disabled (MethodDisabled), returns Error @@ -433,6 +434,7 @@ 204 - Success +405 - Method disabled (MethodDisabled), returns Error @@ -506,6 +508,7 @@ 204 - Success 404 - Server zone not found (ServerZoneNotFound), returns Error +405 - Method disabled (MethodDisabled), returns Error @@ -579,6 +582,7 @@ 204 - Success 404 - Cache not found (CacheNotFound), returns Error +405 - Method disabled (MethodDisabled), returns Error @@ -654,6 +658,7 @@ 204 - Success 400 - Upstream is static (UpstreamStatic), returns Error 404 - Upstream not found (UpstreamNotFound), returns Error +405 - Method disabled (MethodDisabled), returns Error @@ -719,6 +724,7 @@ upstream “name” has no backup (UpstreamNoBackup), upstream “name” memory exhausted (UpstreamOutOfMemory), returns Error 404 - Upstream not found (UpstreamNotFound), returns Error +405 - Method disabled (MethodDisabled), returns Error 415 - JSON error (JsonError), returns Error @@ -791,6 +797,7 @@ upstream “name” memory exhausted (UpstreamOutOfMemory), returns Error 404 - Upstream not found (UpstreamNotFound), server with ID “id” does not exist (UpstreamServerNotFound), returns Error +405 - Method disabled (MethodDisabled), returns Error 415 - JSON error (JsonError), returns Error @@ -807,6 +814,7 @@ server “id” not removable (UpstreamServerImmutable), returns Error 404 - Upstream not found (UpstreamNotFound), server with ID “id” does not exist (UpstreamServerNotFound), returns Error +405 - Method disabled (MethodDisabled), returns Error @@ -893,6 +901,7 @@ only one key can be added (KeyvalFormatError), nested object or list (KeyvalFormatError), returns Error 404 - Keyval not found (KeyvalNotFound), returns Error +405 - Method disabled (MethodDisabled), returns Error 409 - Key already exists (KeyvalKeyExists), returns Error 415 - JSON error (JsonError), returns Error @@ -919,6 +928,7 @@ nested object or list (KeyvalFormatError), returns Error 404 - Keyval not found (KeyvalNotFound), keyval key not found (KeyvalKeyNotFound), returns Error +405 - Method disabled (MethodDisabled), returns Error 415 - JSON error (JsonError), returns Error @@ -931,6 +941,7 @@ 204 - Success 404 - Keyval not found (KeyvalNotFound), returns Error +405 - Method disabled (MethodDisabled), returns Error @@ -1025,6 +1036,7 @@ 204 - Success 404 - Server zone not found (ServerZoneNotFound), stream not configured (StreamNotConfigured), returns Error +405 - Method disabled (MethodDisabled), returns Error @@ -1103,6 +1115,7 @@ 400 - Upstream is static (UpstreamStatic), returns Error 404 - Upstream not found (UpstreamNotFound), stream not configured (StreamNotConfigured), returns Error +405 - Method disabled (MethodDisabled), returns Error @@ -1170,6 +1183,7 @@ upstream “name” memory exhausted (UpstreamOutOfMemory), returns Error 404 - Upstream not found (UpstreamNotFound), stream not configured (StreamNotConfigured), returns Error +405 - Method disabled (MethodDisabled), returns Error 415 - JSON error (JsonError), returns Error @@ -1244,6 +1258,7 @@ 404 - Upstream not found (UpstreamNotFound), server with ID “id” does not exist (UpstreamServerNotFound), stream not configured (StreamNotConfigured), returns Error +405 - Method disabled (MethodDisabled), returns Error 415 - JSON error (JsonError), returns Error @@ -1261,6 +1276,7 @@ 404 - Upstream not found (UpstreamNotFound), server with ID “id” does not exist (UpstreamServerNotFound), stream not configured (StreamNotConfigured), returns Error +405 - Method disabled (MethodDisabled), returns Error diff -r a810103f8a75 -r 593dfdc524ae yaml/nginx_api.yaml --- a/yaml/nginx_api.yaml Wed Sep 27 21:55:34 2017 +0300 +++ b/yaml/nginx_api.yaml Wed Sep 06 15:15:38 2017 +0300 @@ -224,6 +224,10 @@ description: Slab not found (*SlabNotFound*) schema: $ref: '#/definitions/NginxError' + '405': + description: Method disabled (*MethodDisabled*) + schema: + $ref: '#/definitions/NginxError' /http/: get: tags: @@ -270,6 +274,10 @@ responses: '204': description: Success + '405': + description: Method disabled (*MethodDisabled*) + schema: + $ref: '#/definitions/NginxError' /http/server_zones/: get: tags: @@ -338,6 +346,10 @@ description: Server zone not found (*ServerZoneNotFound*) schema: $ref: '#/definitions/NginxError' + '405': + description: Method disabled (*MethodDisabled*) + schema: + $ref: '#/definitions/NginxError' /http/caches/: get: tags: @@ -406,6 +418,10 @@ description: Cache not found (*CacheNotFound*) schema: $ref: '#/definitions/NginxError' + '405': + description: Method disabled (*MethodDisabled*) + schema: + $ref: '#/definitions/NginxError' /http/upstreams/: get: tags: @@ -485,6 +501,10 @@ description: Upstream not found (*UpstreamNotFound*) schema: $ref: '#/definitions/NginxError' + '405': + description: Method disabled (*MethodDisabled*) + schema: + $ref: '#/definitions/NginxError' '/http/upstreams/{httpUpstreamName}/servers/': parameters: - name: httpUpstreamName @@ -566,6 +586,10 @@ description: Upstream not found (*UpstreamNotFound*) schema: $ref: '#/definitions/NginxError' + '405': + description: Method disabled (*MethodDisabled*) + schema: + $ref: '#/definitions/NginxError' '415': description: JSON error (*JsonError*) schema: @@ -661,6 +685,10 @@ server with ID “**id**” does not exist (*UpstreamServerNotFound*) schema: $ref: '#/definitions/NginxError' + '405': + description: Method disabled (*MethodDisabled*) + schema: + $ref: '#/definitions/NginxError' '415': description: JSON error (*JsonError*) schema: @@ -692,6 +720,10 @@ server with ID “**id**” does not exist (*UpstreamServerNotFound*) schema: $ref: '#/definitions/NginxError' + '405': + description: Method disabled (*MethodDisabled*) + schema: + $ref: '#/definitions/NginxError' /http/keyvals/: get: tags: @@ -782,6 +814,10 @@ description: Keyval not found (*KeyvalNotFound*) schema: $ref: '#/definitions/NginxError' + '405': + description: Method disabled (*MethodDisabled*) + schema: + $ref: '#/definitions/NginxError' '409': description: Key already exists (*KeyvalKeyExists*) schema: @@ -823,6 +859,10 @@ keyval key not found (*KeyvalKeyNotFound*) schema: $ref: '#/definitions/NginxError' + '405': + description: Method disabled (*MethodDisabled*) + schema: + $ref: '#/definitions/NginxError' '415': description: JSON error (*JsonError*) schema: @@ -842,6 +882,10 @@ description: Keyval not found (*KeyvalNotFound*) schema: $ref: '#/definitions/NginxError' + '405': + description: Method disabled (*MethodDisabled*) + schema: + $ref: '#/definitions/NginxError' /stream/: get: tags: @@ -934,6 +978,10 @@ [stream](https://nginx.org/en/docs/stream/ngx_stream_core_module.html#stream) not configured (*StreamNotConfigured*) schema: $ref: '#/definitions/NginxError' + '405': + description: Method disabled (*MethodDisabled*) + schema: + $ref: '#/definitions/NginxError' /stream/upstreams/: get: tags: @@ -1023,6 +1071,10 @@ [stream](https://nginx.org/en/docs/stream/ngx_stream_core_module.html#stream) not configured (*StreamNotConfigured*) schema: $ref: '#/definitions/NginxError' + '405': + description: Method disabled (*MethodDisabled*) + schema: + $ref: '#/definitions/NginxError' '/stream/upstreams/{streamUpstreamName}/servers/': parameters: - name: streamUpstreamName @@ -1108,6 +1160,10 @@ [stream](https://nginx.org/en/docs/stream/ngx_stream_core_module.html#stream) not configured (*StreamNotConfigured*) schema: $ref: '#/definitions/NginxError' + '405': + description: Method disabled (*MethodDisabled*) + schema: + $ref: '#/definitions/NginxError' '415': description: JSON error (*JsonError*) schema: @@ -1205,6 +1261,10 @@ [stream](https://nginx.org/en/docs/stream/ngx_stream_core_module.html#stream) not configured (*StreamNotConfigured*) schema: $ref: '#/definitions/NginxError' + '405': + description: Method disabled (*MethodDisabled*) + schema: + $ref: '#/definitions/NginxError' '415': description: JSON error (*JsonError*) schema: @@ -1237,6 +1297,10 @@ [stream](https://nginx.org/en/docs/stream/ngx_stream_core_module.html#stream) not configured (*StreamNotConfigured*) schema: $ref: '#/definitions/NginxError' + '405': + description: Method disabled (*MethodDisabled*) + schema: + $ref: '#/definitions/NginxError' ### ###DEFINITIONS ###