mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-22 16:58:55 +00:00
Merge pull request #908 from ggtakec/master
Added an error message when HTTP 301 status
This commit is contained in:
commit
1d4867830b
@ -2082,8 +2082,12 @@ int S3fsCurl::RequestPerform(void)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Service response codes which are >= 400 && < 500
|
// Service response codes which are >= 300 && < 500
|
||||||
switch(LastResponseCode){
|
switch(LastResponseCode){
|
||||||
|
case 301:
|
||||||
|
S3FS_PRN_ERR("HTTP response code 301(Moved Permanently: also happens when bucket's region is incorrect), returning EIO. Body Text: %s", (bodydata ? bodydata->str() : ""));
|
||||||
|
return -EIO;
|
||||||
|
|
||||||
case 400:
|
case 400:
|
||||||
S3FS_PRN_ERR("HTTP response code %ld, returning EIO. Body Text: %s", LastResponseCode, (bodydata ? bodydata->str() : ""));
|
S3FS_PRN_ERR("HTTP response code %ld, returning EIO. Body Text: %s", LastResponseCode, (bodydata ? bodydata->str() : ""));
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
Loading…
Reference in New Issue
Block a user