Skip to main content
Version: 5.9.6

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 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 Exception handling provider method: IsTooManyRequestError

Example

BackendReturnObject bro = Backend.GameData.Get("tableName", new Where());

if(bro.IsSuccess()) {

} else {
if(bro.IsTooManyRequestError()) {
Debug.Log("단기간에 너무 많은 요청을 보낼 경우");
}
}