Error Handling Management API in the PHP SDK

I am using the PHP SDK to call the management api endpoints.
The server-side API of my app is listening to webhooks and adds roles to users in auth0 if they sign up for a paid account. It is vitally important that this call to the Management API does not fail!

The last few days this call occasionally failed and I would like to track these errors to find a solution. Is there a way to add an error handler to the management api? I am using rollbar.

I could check the guzzle response of every management api response, but this would mean I’d have to add these checks everywhere I call the management api. It would be much easier to add the error handler once, when initiating the management api.