Since Catalog interacts with multiple micro services, RBAC, Approval,
Topology etc, we need to percolate errors from the other services upto
the caller. Since the IPP recommends using JSON-API's error format which
is an array of error objects. This PR handles errors coming from
openapi-generated clients and converts them into error objects.
https://projects.engineering.redhat.com/browse/SSP-1437
Since Catalog interacts with multiple micro services, RBAC, Approval, Topology etc, we need to percolate errors from the other services upto the caller. Since the IPP recommends using JSON-API's error format which is an array of error objects. This PR handles errors coming from openapi-generated clients and converts them into error objects.