Sha256: 92a4c4d7cda8bbb5d7e86102bc94a5fe61e355424b46a5b5a9fa5ca3a4111d3c
Contents?: true
Size: 764 Bytes
Versions: 3
Compression:
Stored size: 764 Bytes
Contents
require 'angellist_api/error' module AngellistApi # Raised when AngellistApi returns the HTTP status code 403 with "over_limit" # in the response. # # @note We've inquired with the AngelList API team about using a 429 status # in the future. class Error class TooManyRequests < AngellistApi::Error # The number of seconds your application should wait before requesting data # from the API again. # # This may not be supported by AngelList currently but is suggested in RFC # 6585 for the 429 status code. def retry_after retry_after = http_headers['retry-after'] retry_after.to_i if retry_after end end # Backwards compatability EnhanceYourCalm = TooManyRequests end end
Version data entries
3 entries across 3 versions & 1 rubygems