Sha256: ec283c9b1dac0e977195977b22cc5f7c2a4cf1cc1a5a60ad88190ea077374aa5

Contents?: true

Size: 979 Bytes

Versions: 8

Compression:

Stored size: 979 Bytes

Contents

module Instagram
  # Custom error class for rescuing from all Instagram errors
  class Error < StandardError; end

  # Raised when Instagram returns the HTTP status code 400
  class BadRequest < Error; end

  # Raised when Instagram returns the HTTP status code 404
  class NotFound < Error; end

  # Raised when Instagram returns the HTTP status code 429
  class TooManyRequests < Error; end

  # Raised when Instagram returns the HTTP status code 500
  class InternalServerError < Error; end

  # Raised when Instagram returns the HTTP status code 502
  class BadGateway < Error; end

  # Raised when Instagram returns the HTTP status code 503
  class ServiceUnavailable < Error; end

  # Raised when Instagram returns the HTTP status code 504
  class GatewayTimeout < Error; end

  # Raised when a subscription payload hash is invalid
  class InvalidSignature < Error; end

  # Raised when Instagram returns the HTTP status code 429
  class RateLimitExceeded < Error; end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
instagram-community-maintained-1.1.6 lib/instagram/error.rb
instagram-1.1.6 lib/instagram/error.rb
instagram-1.1.5 lib/instagram/error.rb
instagram-1.1.4 lib/instagram/error.rb
instagram-1.1.3 lib/instagram/error.rb
instagram-1.1.2 lib/instagram/error.rb
instagram-1.1.1 lib/instagram/error.rb
instagram-1.1.0 lib/instagram/error.rb