smartystreets / smartystreets-php-sdk

The official client libraries for accessing SmartyStreets APIs from the PHP Hypertext Processor.
https://smartystreets.com/docs/sdk/php
Apache License 2.0
28 stars 15 forks source link

Add status code to thrown exceptions #20

Closed luisdeguzman closed 1 year ago

luisdeguzman commented 4 years ago

It would be nice if the $response->getStatusCode() was added to all the exceptions thrown in src/StatusCodeSender.php so we can get the code via $ex->getCode() when catching the exceptions.

abbeynels commented 1 year ago

This issue has been resolved and you can now access the status code of exceptions thrown in src/StatusCodeSender.php by using $ex->getCode(). Thank you for suggesting this!