Sha256: 53bf5c624b146296d53693ab3cf365671e097b6bb7c2f54a56c7f4e1a920c26d

Contents?: true

Size: 617 Bytes

Versions: 3

Compression:

Stored size: 617 Bytes

Contents

require_relative "./error_base"

module HTTPError
  class InternalServerError < ErrorBase
    CODE = 500
    MESSAGE = "Internal Server Error"
  end

  class NotImplemented < ErrorBase
    CODE = 501
    MESSAGE = "Not Impemented"
  end

  class BadGateway < ErrorBase
    CODE = 502
    MESSAGE = "Bad Gateway"
  end

  class ServiceUnavailable < ErrorBase
    CODE = 503
    MESSAGE = "Service Unavailable"
  end

  class GatewayTimeout < ErrorBase
    CODE = 504
    MESSAGE = "Gateway Timeout"
  end

  class HTTPVersionNotSupported < ErrorBase
    CODE = 505
    MESSAGE = "HTTP Version Not Supported"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sinatra-errorcodes-0.1.2 lib/5xx_errors.rb
sinatra-errorcodes-0.1.1 lib/5xx_errors.rb
sinatra-errorcodes-0.1.0 lib/5xx_errors.rb