Method: HTTP::StatusError#initialize

Defined in:
lib/http/errors.rb

#initialize(response) ⇒ StatusError

Returns a new instance of StatusError.



28
29
30
31
32
# File 'lib/http/errors.rb', line 28

def initialize(response)
  @response = response

  super("Unexpected status code #{response.code}")
end