Use shared error handler in S3