Skip to content

Instantly share code, notes, and snippets.

@gengmao
Created October 21, 2015 22:46
Show Gist options
  • Save gengmao/7c910b45af7a428c8563 to your computer and use it in GitHub Desktop.
Save gengmao/7c910b45af7a428c8563 to your computer and use it in GitHub Desktop.
Different status codes returned from AWS S3, all are non-existing buckets...
$ wget https://s3-us-west-2.amazonaws.com/bucket_a/file_a
--2015-10-21 15:45:04-- https://s3-us-west-2.amazonaws.com/bucket_a/file_a
Resolving s3-us-west-2.amazonaws.com... 54.231.160.96
Connecting to s3-us-west-2.amazonaws.com|54.231.160.96|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: unspecified
ERROR: Redirection (301) without location.
$ wget https://s3-us-west-2.amazonaws.com/bucket_b/file_b
--2015-10-21 15:45:09-- https://s3-us-west-2.amazonaws.com/bucket_b/file_b
Resolving s3-us-west-2.amazonaws.com... 54.231.160.152
Connecting to s3-us-west-2.amazonaws.com|54.231.160.152|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: unspecified
ERROR: Redirection (301) without location.
$ wget https://s3-us-west-2.amazonaws.com/bucket_c/file_c
--2015-10-21 15:45:13-- https://s3-us-west-2.amazonaws.com/bucket_c/file_c
Resolving s3-us-west-2.amazonaws.com... 54.231.160.152
Connecting to s3-us-west-2.amazonaws.com|54.231.160.152|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-10-21 15:45:13 ERROR 404: Not Found.
$ wget https://s3-us-west-2.amazonaws.com/bucket_d/file_d
--2015-10-21 15:45:17-- https://s3-us-west-2.amazonaws.com/bucket_d/file_d
Resolving s3-us-west-2.amazonaws.com... 54.231.160.152
Connecting to s3-us-west-2.amazonaws.com|54.231.160.152|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-10-21 15:45:17 ERROR 404: Not Found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment