Module: Above::Status

Defined in:
lib/above/status.rb

Overview

Gemini status codes, includes non standard codes 0-9, otherwise from geminiprotocol.net/docs/protocol-specification.gmi

Constant Summary collapse

CODE =
{
  # 0-9 Non standard codes
  0 => "Address blocked",

  # 10-19 Input expected
  10 => "User input requested",
  11 => "Sensitive user input requested",

  # 20-29 Success
  20 => "Success",

  # 30-39 Redirection
  30 => "Temporary redirection",
  31 => "Permanent redirection",

  # 40+ descriptions are included in the header
  # 40-49 Temporary failure
  40 => "Temporary failure",
  41 => "Server unavailable",
  42 => "CGI error",
  43 => "Proxy error from/with the proxied server",
  44 => "Slow down",

  # 50-59 Permanent failure
  50 => "General permanent failure",
  51 => "Not found",
  52 => "Gone permanently",
  53 => "Proxy request refused by this server",
  59 => "Bad request",

  # 60-69 Client certificates
  60 => "Content requires a client certificate",
  61 => "Certificate not authorized",
  62 => "Certificate not valid (unrelated to request)"
}