Skip to main content
Version: SDK-6.0.0

IsTooManyRequestError

public bool IsTooManyRequestError();

Description

When 403 Forbbiden error occurs because too many requests are sent from a single IP in a short time, 'true' is returned.
The threshold for 'too many requests' is when at least 1 request is sent per second continuously for 5 minutes.

The included error cases are as follows:

  • When excessive requests have been detected
    statusCode : 403
    errorCode : Forbidden
    message : 403 Forbidden(the same error code as below)
    Exception handling provider method: IsTooManyRequestError
<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
</body>
</html>

  • When a request is sent during the restricted period after detecting excessive requests
    statusCode : 403
    errorCode : Forbidden
    message : 403 Forbidden by Local
    Exception handling provider method: IsTooManyRequestError

Example

BackndReturnObject bro = Backnd.PlayerTable.Get("tableName");

if(bro.IsSuccess()) {

} else {
if(bro.IsTooManyRequestError()) {
Debug.Log("This occurs when too many requests are sent in a short time");
}
}