diff --git a/docs/storage/driver/oss/oss.go b/docs/storage/driver/oss/oss.go
index <HASH>..<HASH> 100644
--- a/docs/storage/driver/oss/oss.go
+++ b/docs/storage/driver/oss/oss.go
@@ -754,7 +754,7 @@ func (d *driver) ossPath(path string) string {
 }
 
 func parseError(path string, err error) error {
-	if ossErr, ok := err.(*oss.Error); ok && ossErr.Code == "NoSuchKey" {
+	if ossErr, ok := err.(*oss.Error); ok && ossErr.StatusCode == 404 && (ossErr.Code == "NoSuchKey" || ossErr.Code == "") {
 		return storagedriver.PathNotFoundError{Path: path}
 	}
In HEAD request for missing resource, only <I> NOT FOUND is returned

Change-Id: I<I>caf<I>b<I>e6f4f<I>f7d<I>f5d4fd4ad9affcd