Detailed error messages are returned for most API errors within the response body. However
However, clients such as the PHP SDK raise an exception with a very generic message.
For better troubleshooting, fine tune your try/catch blocks to trap the ApiException. It yields much more information.
Example:
...