class Octokit::Error

def self.error_for_403(body)

Other tags:
    Private: -
def self.error_for_403(body)
  # rubocop:enable Naming/VariableNumber
  case body
  when /rate limit exceeded/i, /exceeded a secondary rate limit/i
    Octokit::TooManyRequests
  when /login attempts exceeded/i
    Octokit::TooManyLoginAttempts
  when /(returns|for) blobs (up to|between) [0-9-]+ MB/i
    Octokit::TooLargeContent
  when /abuse/i
    Octokit::AbuseDetected
  when /repository access blocked/i
    Octokit::RepositoryUnavailable
  when /email address must be verified/i
    Octokit::UnverifiedEmail
  when /account was suspended/i
    Octokit::AccountSuspended
  when /billing issue/i
    Octokit::BillingIssue
  when /Resource protected by organization SAML enforcement/i
    Octokit::SAMLProtected
  when /suspended your access|This installation has been suspended/i
    Octokit::InstallationSuspended
  else
    Octokit::Forbidden
  end
end