Changeset 2501:2b494b8ff72d in nginx_org


Ignore:
Timestamp:
02/12/20 15:10:47 (6 days ago)
Author:
Yaroslav Zhuravlev <yar@…>
Branch:
default
Phase:
public
Message:

Documented the "Entry exists" error in the API.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • xml/en/docs/http/ngx_http_api_module.xml

    r2500 r2501  
    10541054upstream not found (<literal>UpstreamNotFound</literal>), returns <link id="def_nginx_error">Error</link></listitem>
    10551055<listitem>405 - Method disabled (<literal>MethodDisabled</literal>), returns <link id="def_nginx_error">Error</link></listitem>
     1056<listitem>409 - Entry exists (<literal>EntryExists</literal>), returns <link id="def_nginx_error">Error</link></listitem>
    10561057<listitem>415 - JSON error (<literal>JsonError</literal>), returns <link id="def_nginx_error">Error</link></listitem>
    10571058</list>
     
    12411242unknown version (<literal>UnknownVersion</literal>), returns <link id="def_nginx_error">Error</link></listitem>
    12421243<listitem>405 - Method disabled (<literal>MethodDisabled</literal>), returns <link id="def_nginx_error">Error</link></listitem>
    1243 <listitem>409 - Key already exists (<literal>KeyvalKeyExists</literal>), returns <link id="def_nginx_error">Error</link></listitem>
     1244<listitem>409 - Entry exists (<literal>EntryExists</literal>),
     1245key already exists (<literal>KeyvalKeyExists</literal>), returns <link id="def_nginx_error">Error</link></listitem>
    12441246<listitem>413 - Request Entity Too Large, returns <link id="def_nginx_error">Error</link></listitem>
    12451247<listitem>415 - JSON error (<literal>JsonError</literal>), returns <link id="def_nginx_error">Error</link></listitem>
     
    16081610upstream not found (<literal>UpstreamNotFound</literal>), returns <link id="def_nginx_error">Error</link></listitem>
    16091611<listitem>405 - Method disabled (<literal>MethodDisabled</literal>), returns <link id="def_nginx_error">Error</link></listitem>
     1612<listitem>409 - Entry exists (<literal>EntryExists</literal>), returns <link id="def_nginx_error">Error</link></listitem>
    16101613<listitem>415 - JSON error (<literal>JsonError</literal>), returns <link id="def_nginx_error">Error</link></listitem>
    16111614</list>
     
    17951798unknown version (<literal>UnknownVersion</literal>), returns <link id="def_nginx_error">Error</link></listitem>
    17961799<listitem>405 - Method disabled (<literal>MethodDisabled</literal>), returns <link id="def_nginx_error">Error</link></listitem>
    1797 <listitem>409 - Key already exists (<literal>KeyvalKeyExists</literal>), returns <link id="def_nginx_error">Error</link></listitem>
     1800<listitem>409 - Entry exists (<literal>EntryExists</literal>),
     1801key already exists (<literal>KeyvalKeyExists</literal>), returns <link id="def_nginx_error">Error</link></listitem>
    17981802<listitem>413 - Request Entity Too Large, returns <link id="def_nginx_error">Error</link></listitem>
    17991803<listitem>415 - JSON error (<literal>JsonError</literal>), returns <link id="def_nginx_error">Error</link></listitem>
  • yaml/nginx_api.yaml

    r2500 r2501  
    897897          schema:
    898898            $ref: '#/definitions/NginxError'
     899        '409':
     900          description: Entry exists (*EntryExists*)
     901          schema:
     902            $ref: '#/definitions/NginxError'
    899903        '415':
    900904          description: JSON error (*JsonError*)
     
    11461150            $ref: '#/definitions/NginxError'
    11471151        '409':
    1148           description: Key already exists (*KeyvalKeyExists*)
     1152          description: |
     1153            Entry exists (*EntryExists*),
     1154            key already exists (*KeyvalKeyExists*)
    11491155          schema:
    11501156            $ref: '#/definitions/NginxError'
     
    16031609          schema:
    16041610            $ref: '#/definitions/NginxError'
     1611        '409':
     1612          description: Entry exists (*EntryExists*)
     1613          schema:
     1614            $ref: '#/definitions/NginxError'
    16051615        '415':
    16061616          description: JSON error (*JsonError*)
     
    18521862            $ref: '#/definitions/NginxError'
    18531863        '409':
    1854           description: Key already exists (*KeyvalKeyExists*)
     1864          description: |
     1865            Entry exists (*EntryExists*),
     1866            key already exists (*KeyvalKeyExists*)
    18551867          schema:
    18561868            $ref: '#/definitions/NginxError'
Note: See TracChangeset for help on using the changeset viewer.