Sha256: 4692074db19ad05c76f8906944d29b2943ea3499241d6d6fd17d47eb1beaff05
Contents?: true
Size: 377 Bytes
Versions: 6
Compression:
Stored size: 377 Bytes
Contents
class HTTPError < StandardError @code = 500 class << self attr_reader :code end def code self.class.code end end class ClientError < HTTPError @code = 400 end class BadRequest < ClientError @code = 400 end class Forbidden < ClientError @code = 403 end class NotFound < ClientError @code = 404 end class Conflict < ClientError @code = 409 end
Version data entries
6 entries across 6 versions & 1 rubygems