Add handler for HTTP 416

This prevents retries when the server indicates an unsatisfiable MPU
copy part request.  References #1220.
This commit is contained in:
Andrew Gaul 2020-03-01 17:41:45 +09:00
parent 4da02d023b
commit cf529e0af7

View File

@ -2482,6 +2482,11 @@ int S3fsCurl::RequestPerform(bool dontAddAuthHeaders /*=false*/)
result = -ENOENT;
break;
case 416:
S3FS_PRN_INFO3("HTTP response code 416 was returned, returning EIO");
result = -EIO;
break;
case 501:
S3FS_PRN_INFO3("HTTP response code 501 was returned, returning ENOTSUP");
S3FS_PRN_DBG("Body Text: %s", bodydata.str());