Получить код ответа http сервера
require 'net/http' puts Net::HTTP.get_response('najomi.org', '/404.html').code
404