+ # Raised when a rate limit is exceeded
+ class APIRateLimitExceeded < APIError
+ def initialize
+ super("Rate limit exceeded")
+ end
+
+ def status
+ :too_many_requests
+ end
+ end
+
+ # Raised when a size limit is exceeded
+ class APISizeLimitExceeded < APIError
+ def initialize
+ super("Size limit exceeded")
+ end
+
+ def status
+ :payload_too_large
+ end
+ end
+