class Akasha::HttpError
Base class for HTTP errors.
Attributes
response_headers[R]
status_code[R]
Public Class Methods
new(env)
click to toggle source
Calls superclass method
# File lib/akasha/exceptions.rb, line 52 def initialize(env) @status_code = env.status.to_i @response_headers = env.response_headers super("Unexpected HTTP response: #{@status_code}") end