SRC: Updated RetrySender to only retry specific status codes. Added status codes to exceptions thrown in StatusCodeSender.
RetrySender: Only retries specific status codes (specified by the Ruby SDK: 408, 429, 500, 502, 503, 504)
StatusCodeSender: Added status codes to exceptions thrown, added new exceptions (RequestTimeoutException and BadGatewayException). Declared $errorMessage variable outside the foreach loop to remove the variable undefined variable error (GitHub issue #40 https://github.com/smartystreets/smartystreets-php-sdk/issues/40)
TESTS: Mostly cosmetic changes
International Autocomplete ClientTest: Added require SmartyException
Mocks: Changed exceptions thrown when a retry is needed to MustRetryException to ensure that the request is retried. We can also change this to be another exception class that is retried (408, 429, 500, 502, 503, 504) but I decided to just make a new exception class for now. We can change that
RetrySenderTest: Added require MustRetryException
StatusCodeSenderTest: Added use statements for exceptions and removed \SmartyStreets\PhpSdk\Exceptions\ from the beginning of each exception class type. I can also revert this. Changed test402ResponsePThrowsPaymentRequiredException test name to remove the extra P in the name
EXAMPLES: Mostly cosmetic changes so the examples match each other better
NOTE: These have a different naming convention (Us vs the above US, which ones should it be?)
EXCEPTIONS: Added three new exceptions.
SRC: Updated RetrySender to only retry specific status codes. Added status codes to exceptions thrown in StatusCodeSender.
TESTS: Mostly cosmetic changes