We use boto3 for our interaction with s3. Therefore if an expection is thrown it will be thrown from the botocore library (which boto3 is built on top of). I have copied app/aws/s3.py::file_exists for an example of this exception catching.
TokenAlgorithmError
type=int
request.args.get