Amazon returned invalid HTTP response code 400