class SSE::Errors::HTTPStatusError
An exception class representing an HTTP error response. This can be passed to the error handler specified in {Client#on_error}.
Attributes
message[R]
The response body, if any. @return [String]
status[R]
The HTTP status code. @return [Int]
Public Class Methods
new(status, message)
click to toggle source
Calls superclass method
# File lib/ld-eventsource/errors.rb, line 12 def initialize(status, message) @status = status @message = message super("HTTP error #{status}") end