class RSpec::Rails::Matchers::HaveHttpStatus::GenericStatus

def initialize(type)

def initialize(type)
  unless self.class.valid_statuses.include?(type)
    raise ArgumentError, "Invalid generic HTTP status: #{type.inspect}"
  end
  @expected = type
  @actual = nil
  @invalid_response = nil
end