title: How to capture botocore's NoSuchKey exception?
body: <p>I'm trying to write "good" python and capture a S3 no such key error with this:</p>
  
  <pre><code>session = botocore.session.get_session()
  client = session.create_client('s3')
  try:
      client.get_object(Bucket=BUCKET, Key=FILE)
  except NoSuchKey as e:
      print &gt;&gt; sys.stderr, "no such key in bucket"
  </code></pre>
  
  <p>But NoSuchKey isn't defined and I can't trace it to the import I need to have it defined.</p>
  
  <p><code>e.__class__</code> is <code>botocore.errorfactory.NoSuchKey</code> but <code>from botocore.errorfactory import NoSuchKey</code> gives an error and <code>from botocore.errorfactory import *</code> doesn't work either and I don't want to capture a generic error. </p>