diff --git a/src/Entity/Tab/Page.php b/src/Entity/Tab/Page.php index 7fb041d7..04d41a25 100644 --- a/src/Entity/Tab/Page.php +++ b/src/Entity/Tab/Page.php @@ -465,6 +465,16 @@ class Page } } + // Process error codes + if (20 != $response->getCode()) // not found + { + $this->_yoda( + 'yoda://nothing' + ); + + return; + } // @TODO other codes + $this->content->set_markup( \Yggverse\Gemini\Pango::fromGemtext( $response->getBody() diff --git a/src/Page/Nothing.gmi b/src/Page/Nothing.gmi new file mode 100644 index 00000000..d337f7c9 --- /dev/null +++ b/src/Page/Nothing.gmi @@ -0,0 +1,3 @@ +# Not found + +Requested resource not available \ No newline at end of file