Hi Ramkumar
From TMF Open API perspective, an API specification is just that, a specification. There is no prescription on how to implement the API, you can write a COBOL monolith that exposes the APIs, or you can write dedicated microservices for each API, or whatever.
Your responsibility as an API implementer is to ensure that your implementation aligns with the specification (and conforms with the test kit, if you are seeking certification).
Specifically regarding error messages, the Open API does not prescribe specific error codes in the Error structure, beyond the HTTP return statuses.
Hope it helps
------------------------------
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.
------------------------------