Ensures that when the API returns the expected error details we surface these through an ManagementApiError or AuthApiError instance. If not, we stick to the ResponseError we already have.
Testing
Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.
Changes
Ensures that when the API returns the expected error details we surface these through an
ManagementApiError
orAuthApiError
instance. If not, we stick to theResponseError
we already have.Testing
Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.
Checklist