Sha256: 6cb548fa397106eb8364f6576d4c7bc2d78e8372f6c6df6171c0ab52c237e39d

Contents?: true

Size: 1.04 KB

Versions: 15

Compression:

Stored size: 1.04 KB

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 403
  class Forbidden < 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

15 entries across 15 versions & 3 rubygems

Version Path
instagram-continued-continued-1.5.0 lib/instagram/error.rb
extendi-instagram-2.0.6 lib/instagram/error.rb
extendi-instagram-2.0.5 lib/instagram/error.rb
extendi-instagram-2.0.4 lib/instagram/error.rb
extendi-instagram-2.0.3 lib/instagram/error.rb
instagram-continued-1.4.0 lib/instagram/error.rb
extendi-instagram-2.0.2 lib/instagram/error.rb
instagram-continued-1.3.3 lib/instagram/error.rb
extendi-instagram-2.0.1 lib/instagram/error.rb
extendi-instagram-2.0.0 lib/instagram/error.rb
instagram-continued-1.3.2 lib/instagram/error.rb
instagram-continued-1.3.1 lib/instagram/error.rb
instagram-continued-1.3.0 lib/instagram/error.rb
instagram-continued-1.2.1 lib/instagram/error.rb
instagram-continued-1.2.0 lib/instagram/error.rb