Returns the retry predicate with the conditions specified for retrying.
FromErrorCodes(params int[])
public static RetryPredicate FromErrorCodes(params int[] errorCodes)
Returns a predicate which will retry on the specified HTTP error codes.
Note that only these error codes will be retried; the default error codes are not used by the returned predicate.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eRetryPredicate\u003c/code\u003e class in the Google Cloud Storage v1 API defines conditions for retrying failed operations, and it is immutable.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the documentation is \u003ccode\u003e4.11.0\u003c/code\u003e, while the current page focuses on version \u003ccode\u003e4.6.0\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRetryPredicate.Never\u003c/code\u003e property ensures that a failed operation will never be retried.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRetryPredicate.RetriableIdempotentErrors\u003c/code\u003e specifies default error codes that trigger retries.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRetryPredicate\u003c/code\u003e can be customized with methods like \u003ccode\u003eFromErrorCodePredicate\u003c/code\u003e and \u003ccode\u003eFromErrorCodes\u003c/code\u003e to define retry behavior based on HTTP error codes.\u003c/p\u003e\n"]]],[],null,[]]