lib/ridley/errors.rb in ridley-0.12.0.rc1 vs lib/ridley/errors.rb in ridley-0.12.0

- old
+ new

@@ -108,9 +108,18 @@ super(env) @message = "status: #{env[:status]} is an unknown HTTP status code or not an error." end end + class HTTPUnknownMethod < HTTPError + attr_reader :method + + def initialize(method) + @method = method + @message = "unknown http method: #{method}" + end + end + class HTTP3XXError < HTTPError; end class HTTP4XXError < HTTPError; end class HTTP5XXError < HTTPError; end # 3XX