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 latest version available for the Google Cloud Storage v1 API is 4.11.0, while the current page is on version 4.8.0 and lists several prior versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRetryPredicate\u003c/code\u003e class, found within the \u003ccode\u003eGoogle.Cloud.Storage.V1\u003c/code\u003e namespace, defines when failed operations should be retried.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRetryPredicate\u003c/code\u003e is an immutable class that inherits from the base .NET \u003ccode\u003eobject\u003c/code\u003e class, and it does not have any members that are inherited from it other than \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides static properties \u003ccode\u003eNever\u003c/code\u003e and \u003ccode\u003eRetriableIdempotentErrors\u003c/code\u003e, which are both \u003ccode\u003eRetryPredicate\u003c/code\u003e types, to indicate no retries or default retriable errors, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFromErrorCodePredicate\u003c/code\u003e and \u003ccode\u003eFromErrorCodes\u003c/code\u003e methods allow for custom retry conditions based on HTTP error codes.\u003c/p\u003e\n"]]],[],null,[]]