Sha256: 48726972a12ac97d25a978f5d1b20d852ced3445d6e793bb34c6d284e115fc3c

Contents?: true

Size: 853 Bytes

Versions: 2

Compression:

Stored size: 853 Bytes

Contents

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

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

  # Raised when Thounds returns the HTTP status code 401
  class Unauthorized < Error; end

  # Raised when Thounds returns the HTTP status code 403
  class Forbidden < Error; end

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

  # Raised when Thounds returns the HTTP status code 406
  class NotAcceptable < Error; end

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thounds-0.0.2 lib/thounds/error.rb
thounds-0.0.1 lib/thounds/error.rb