TooManyRequestsError

public final class TooManyRequestsError

Indicates that the API cannot fulfill the request because server resources have been exhausted. Perhaps the client has sent too many requests in a given amount of time or has reached some specific quota. Please check the rate limits for the product and adjust as necessary before retries. If you believe the rate limit was incorrect or if you need a different rate limit, please reach out to the regarding the next steps.

Parameters

code

Snake cased all caps error code interpreted from the HTTP status code that can programmatically be acted upon.

message

A human-readable explanation of the error, specific to this error occurrence.

Constructors

Types

Link copied to clipboard
public final class Builder
Link copied to clipboard
public enum Code extends Enum<TooManyRequestsError.Code>

Snake cased all caps error code interpreted from the HTTP status code that can programmatically be acted upon. Values: UNAUTHORIZED,FORBIDDEN,NOT_FOUND,ACCOUNT_UPDATE_NOT_FOUND,TOO_MANY_REQUESTS,INTERNAL_SERVER_ERROR,BAD_GATEWAY,RETRYABLE_ACCOUNT_SCREEN_FAILURE,RETRYABLE_ACCOUNT_UPDATE_FAILURE,GATEWAY_TIMEOUT,BAD_REQUEST

Properties

Link copied to clipboard
@NotNull()
private final TooManyRequestsError.Code code
Link copied to clipboard
@NotNull()
@Valid()
private final String message

Functions

Link copied to clipboard
public final static TooManyRequestsError.Builder builder()
Link copied to clipboard
Link copied to clipboard
public final String getMessage()
Link copied to clipboard