lib/hyperdrive/errors/http_error.rb in hyperdrive-0.0.7 vs lib/hyperdrive/errors/http_error.rb in hyperdrive-0.0.8

- old
+ new

@@ -1,15 +1,14 @@ # encoding: utf-8 module Hyperdrive module Errors class HTTPError < RuntimeError - def message - 'Unknown Error.' + attr_reader :http_status_code, :message + def initialize(message, http_status_code = 500) + @message = message + @http_status_code = http_status_code end - - def http_status_code - 500 - end end end end +