1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-07-08 15:16:26 +00:00

Merge pull request #517 from owncloud/feature/handle_425_open_in_web

Handle 425 when trying to open in web
This commit is contained in:
Juan Carlos Garrote 2022-10-31 17:55:11 +01:00 committed by GitHub
commit 2db26fe540
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,6 +237,10 @@ public class RemoteOperationResult<T>
httpMethod.getResponseBodyAsString(),
ResultCode.SPECIFIC_METHOD_NOT_ALLOWED
);
break;
case HttpConstants.HTTP_TOO_EARLY:
mCode = ResultCode.TOO_EARLY;
break;
default:
break;
}
@ -583,6 +587,7 @@ public class RemoteOperationResult<T>
SPECIFIC_SERVICE_UNAVAILABLE,
SPECIFIC_UNSUPPORTED_MEDIA_TYPE,
SPECIFIC_METHOD_NOT_ALLOWED,
SPECIFIC_BAD_REQUEST
SPECIFIC_BAD_REQUEST,
TOO_EARLY,
}
}