Sha256: ec9427ad591e52505f1d6a8bfc86a7fed5cb8ada0e812ca40637bfa9174c5a2e
Contents?: true
Size: 418 Bytes
Versions: 4
Compression:
Stored size: 418 Bytes
Contents
class HTTPError < StandardError @code = 500 def self.code @code end def code self.class.code end end class ClientError < HTTPError @code = 400 end class BadRequest < ClientError @code = 400 end class Unauthenticated < ClientError @code = 401 end class Forbidden < ClientError @code = 403 end class NotFound < ClientError @code = 404 end class Conflict < ClientError @code = 409 end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gaptool-server-0.6.4 | lib/exceptions.rb |
gaptool-server-0.6.3 | lib/exceptions.rb |
gaptool-server-0.6.0 | lib/exceptions.rb |
gaptool-server-0.6.0.beta1 | lib/exceptions.rb |