How to Modify OOTB REST API Error Schemas?

AnilPathi
Tera Contributor

We have a requirement to modify the Out-of-the-Box (OOTB) error schemas for TMF642 Open API to align with the TM Forum standards. To achieve this, we have created a custom scripted REST API, which acts as a bridge between TMF642 and the external system. In this custom scripted REST API, we are able to modify all error schemas before sending them to the external system.

However, we are unable to modify the 405 - Method Not Allowed error because it does not reach our custom endpoints where the schema could be customized. Below is an example of the error schema that we are unable to modify:

{
    "error": {
        "message": "Method not Supported",
        "detail": "POST method not supported for API"
    },
    "status": "failure"
}


Can anyone please assist us with modifying the above error schema?


Thanks & Regards,
Anil Pathi
0 REPLIES 0