timcase/echonest

View on GitHub
lib/echowrap/error/too_many_requests.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'echowrap/error/client_error'

module Echowrap
  class Error
    # Raised when Echowrap returns the HTTP status code 429
    class TooManyRequests < Echowrap::Error::ClientError
      HTTP_STATUS_CODE = 429
    end
    EnhanceYourCalm = TooManyRequests
    RateLimited = TooManyRequests
  end
end