Sha256: eabbae79d83864147f5c6f78c316195d52937a236a5e42820262d39e33888e02

Contents?: true

Size: 862 Bytes

Versions: 2

Compression:

Stored size: 862 Bytes

Contents

module Smoodit
  # Custom error class for rescuing from all Smood it errors
  class Error < StandardError; end

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

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

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

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

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

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

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