Checking response status code from s3