diff --git a/Cargo.toml b/Cargo.toml index 0cd53b6..3c35c4c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ggemini" -version = "0.5.0" +version = "0.5.1" edition = "2021" license = "MIT" readme = "README.md" diff --git a/src/client/response/header/status.rs b/src/client/response/header/status.rs index f251d3b..6097171 100644 --- a/src/client/response/header/status.rs +++ b/src/client/response/header/status.rs @@ -6,10 +6,14 @@ use glib::GString; /// https://geminiprotocol.net/docs/protocol-specification.gmi#status-codes #[derive(Debug)] pub enum Status { + // 10 | 11 Input, SensitiveInput, + // 20 Success, + // 30 | 31 Redirect, + PermanentRedirect, } // @TODO impl Status { @@ -28,6 +32,8 @@ impl Status { "10" => Ok(Self::Input), "11" => Ok(Self::SensitiveInput), "20" => Ok(Self::Success), + "30" => Ok(Self::Redirect), + "31" => Ok(Self::PermanentRedirect), _ => Err(Error::Undefined), } }