code: public boolean isServiceException404()
    {
      if ((Exception) this instanceof AmazonServiceException)
      {
        AmazonServiceException asEx = (AmazonServiceException) ((java.lang.Exception) this);
        return (asEx.getStatusCode() == HttpStatus.SC_NOT_FOUND);
      }
  
      return false;
    }
docs: Returns true if this is an exception corresponding to a HTTP 404 error
  returned by the storage provider
  
  @return true if the specified exception is an AmazonServiceException
  instance and if it was thrown because of a 404, false otherwise.