lib/hyperdrive/errors/unauthorized.rb in hyperdrive-0.0.7 vs lib/hyperdrive/errors/unauthorized.rb in hyperdrive-0.0.8
- old
+ new
@@ -1,13 +1,10 @@
module Hyperdrive
module Errors
class Unauthorized < HTTPError
- def message
- "The request requires user authentication."
+ def initialize
+ @message = 'The request requires user authentication.'
+ @http_status_code = 401
end
-
- def http_status_code
- 401
- end
end
end
-end
\ No newline at end of file
+end