diff --git a/README.md b/README.md index 379d8e08..2ebabd76 100644 --- a/README.md +++ b/README.md @@ -61,18 +61,18 @@ GTK 4 / Libadwaita client written in Rust * [x] Redirection * [x] `30` Temporary * [x] `31` Permanent - * [ ] Temporary failure - * [ ] `40` Unspecified condition - * [ ] `41` Server unavailable - * [ ] `42` CGI error - * [ ] `43` Proxy error - * [ ] `44` Slow down - * [ ] Permanent failure - * [ ] `50` General - * [ ] `51` Not found - * [ ] `52` Gone - * [ ] `53` Proxy request refused - * [ ] `59` Bad request + * [x] Temporary failure + * [x] `40` Unspecified condition + * [x] `41` Server unavailable + * [x] `42` CGI error + * [x] `43` Proxy error + * [x] `44` Slow down + * [x] Permanent failure + * [x] `50` General + * [x] `51` Not found + * [x] `52` Gone + * [x] `53` Proxy request refused + * [x] `59` Bad request * [x] Client certificates * [x] `60` Certificate requested * [x] `61` Certificate not authorized diff --git a/src/app/browser/window/tab/item/client/driver/gemini.rs b/src/app/browser/window/tab/item/client/driver/gemini.rs index 14931f6f..577d6c04 100644 --- a/src/app/browser/window/tab/item/client/driver/gemini.rs +++ b/src/app/browser/window/tab/item/client/driver/gemini.rs @@ -483,12 +483,12 @@ fn handle( subject.tab_page.set_title(&status.title()); redirects.replace(0); // reset } - status => { - let _status = subject.page.content.to_status_failure(); - _status.set_description(Some(&format!("Undefined status code `{status}`"))); + error => { + let status = subject.page.content.to_status_failure(); + status.set_description(Some(&error.to_string())); subject.page.navigation.request.widget.entry.set_progress_fraction(0.0); subject.tab_page.set_loading(false); - subject.tab_page.set_title(&_status.title()); + subject.tab_page.set_title(&status.title()); redirects.replace(0); // reset }, }