The exception stores the HttpStatus and HttpHeaders of the failed request
[facebook-errors] / src / main / java / de / juplo / facebook / errors / CustomRequestLimitReachedException.java
1 package de.juplo.facebook.errors;
2
3
4 import org.springframework.http.HttpHeaders;
5 import org.springframework.http.HttpStatus;
6
7
8
9
10 /**
11  * 613: Calls to stream have exceeded the rate of 600 calls per 600 seconds.
12  * Taken from https://developers.facebook.com/docs/graph-api/advanced/rate-limiting?locale=en_US#faq
13  * I'm seeing Error Code 613, what do I do?
14  * If your error response contains error_subcode 1996, Facebook has noticed inconsistent behavior in the API request volume of your app. If you have made any recent changes that affect the number of API requests, you may be encountering this error.
15  * If you do not see the subcode, your app is exceeding a custom rate limit. Please contact your Partner Manager for help resolving this issue.
16  * @author Kai Moritz
17  */
18 public class CustomRequestLimitReachedException extends OAuthException
19 {
20   protected CustomRequestLimitReachedException(
21       HttpStatus status,
22       HttpHeaders headers,
23       FacebookErrorMessage error
24       )
25   {
26     super(status, headers, error);
27   }
28 }