Open APIs

Expand all | Collapse all

Use of Http Status code 409 for GET requests in TMF 678

  • 1.  Use of Http Status code 409 for GET requests in TMF 678

    TM Forum Member
    Posted Apr 26, 2021 10:00
    Dear All,

    I observed that Http Status code 409 is used for all the Http requests in TMF 678 but ideally, 409 should be used in response to ONLY PUT requests.

    Is that mistakenly included in response to other HTTP requests such as GET?

    Any help in this regard is highly appreciated.

    Thanks in advance,

    BR,
    Purushottam Selvan
    API Developer
    Tata Consultancy Services

    ------------------------------
    Purushottam Yadav
    Tata Consultancy Services
    ------------------------------


  • 2.  RE: Use of Http Status code 409 for GET requests in TMF 678

    TM Forum Member
    Posted Apr 27, 2021 01:07
    Thanks Purushottam
    You are correct, and I have opened a defect report against the Open API internal tooling that generates the swagger files for the APIs.
    Thanks for your alertness.

    ------------------------------
    Jonathan Goldberg
    Amdocs Management Limited
    Any opinions and statements made by me on this forum are purely personal, and do not necessarily reflect the position of the TM Forum or my employer.
    ------------------------------



  • 3.  RE: Use of Http Status code 409 for GET requests in TMF 678

    TM Forum Member
    Posted Apr 28, 2021 02:20
    Hi,

    In this report let's then be clear on exact statement:
    • 409 is indeed not applicable for GET
    • However it is applicable for whatever other (editorial) operation: POST for create may be rejected due to conflict, PUT/PATCH for update for same reason, even DELETE in some specific cases may be, and finally POST for tasks can be rejected due to conflict too
    So we need to exclude only GET from such picture.

    Kind regards,

    ------------------------------
    Christophe MICHEL
    Amdocs Management Limited
    ------------------------------



  • 4.  RE: Use of Http Status code 409 for GET requests in TMF 678

    TM Forum Member
    Posted Apr 28, 2021 04:50
    Hello

    Agreed with Christophe - I checked the TMF630 Design guideline and the use of 409 is correctly stated there
    @Jonathan Goldberg  as you mentioned this is a tooling issue.

    Thanks
    Ludovic


    ------------------------------
    Ludovic Robert
    Orange
    My answer are my own & don't represent necessarily my company or the TMF
    ------------------------------