Open
Description
What happened?
As a follow up of the pr #132374 to improve the returned error message.
Title of this issue might be improved.
Link to the conversations:
https://github.com/kubernetes/kubernetes/pull/132374/files#r2164278417
What did you expect to happen?
Improved error message.
Currently, we return:
return storage.NewTooLargeResourceVersionError(uint64(withRev), currentRV, 0)
How can we reproduce it (as minimally and precisely as possible)?
curl -v -X GET 'https://xxxx:6443/apis/storage.k8s.io/v1/storageclasses?resourceVersion=7111021737&limit=38&timeoutSeconds=1&gracePeriodSeconds=103' -H "Authorization: Bearer $TOKEN" --insecure
Anything else we need to know?
No response
Kubernetes version
$ kubectl version
# paste output here
Cloud provider
OS version
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here
# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here