Response 401 undocumented in Swagger

Options

Hi there,

small issue. In any flow I can use a precondition to check anything I want and cause an error to be generated. One of the error types available is the UNAUTHORIZED type. This causes the 401 response code.

This code however isn't documented in the swagger documentation. That documentation only covers 200, 400, 403, 404, 429 and 500.

My front end developer picked up on this as he ingests the swagger json to generate typescript and it was throwing an error.

Comments

  • Liz Anaya
    Liz Anaya Member, Administrator

    ADMIN

    Options

    Hi @Bas van Ginkel! 👋

    Thank you for bringing this up. I quickly tested this and got the 401 error on the server response section. I see where it says undocumented and see that it doesn't show up with the rest of the codes. I'll check on this and get back to you.