"410" => "Gone",
"412" => "Precondition Failed",
"416" => "Requested Range Not Satisfiable",
+ "422" => "Unprocessable Entity",
"500" => "Internal Server Error",
"502" => "Bad Gateway",
"503" => "Service Unavailable",
else
statistics = JSON.parse(File.read("/srv/www.openstreetmap.org/rails/tmp/statistics.json"))
- HTTP_STATUSES.keys.each do |code|
+ HTTP_STATUSES.each_key do |code|
count = statistics["status"][code] || 0
puts "http#{code}.value #{count}"
end