@Override
        public AmazonServiceException handle(
                com.amazonaws.http.HttpResponse response) throws Exception {
            AmazonServiceException ase = new AmazonServiceException("Fake service exception.");
            ase.setStatusCode(response.getStatusCode());
            ase.setErrorCode(response.getStatusText());
            return ase;
        }
An error response handler implementation that simply
  - keeps the status code
  - sets the error code by the status text (which comes from the reason phrase in the low-level response)
aws-java-sdk-core/src/test/java/com/amazonaws/retry/RetryPolicyTestBase.java