class Hyperb::Error
representation of Hyper errors
Constants
- BadRequest
code 400
- ClientError
4xx HTTP status code
- Conflict
code 409
- ERRORS
- InternalServerError
code 500
- NotFound
code 404
- NotModified
hyper uses code 304 as a server representation for some operations
- ServerError
5xx HTTP status code
code 401
Attributes
code[R]
msg[R]
Public Class Methods
new(msg, code = nil)
click to toggle source
Calls superclass method
# File lib/hyperb/error.rb, line 46 def initialize(msg, code = nil) super(msg) @code = code end