module WEBrick::HTTPStatus

def success?(code)

Is +code+ a successful status?
#
def success?(code)
  code.to_i >= 200 and code.to_i < 300
end