diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-06-16 23:01:16 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-06-16 23:01:16 +0200 |
| commit | 94dbe30902e36cedb30cb89ea3bd7ecd6c5a03f2 (patch) | |
| tree | 98b32b834960a59102118630f4d936671081f6c7 /src/error_page | |
| parent | a3f3e3933c4a2522e233917a6795c6e9d677e65c (diff) | |
| download | kristall-94dbe30902e36cedb30cb89ea3bd7ecd6c5a03f2.tar.gz | |
Adds improved error handling.
Diffstat (limited to 'src/error_page')
| -rw-r--r-- | src/error_page/BadRequest.gemini | 5 | ||||
| -rw-r--r-- | src/error_page/ConnectionRefused.gemini | 5 | ||||
| -rw-r--r-- | src/error_page/HostNotFound.gemini | 5 | ||||
| -rw-r--r-- | src/error_page/InternalServerError.gemini | 5 | ||||
| -rw-r--r-- | src/error_page/InvalidClientCertificate.gemini | 5 | ||||
| -rw-r--r-- | src/error_page/MistrustedHost.gemini | 7 | ||||
| -rw-r--r-- | src/error_page/ProtocolViolation.gemini | 5 | ||||
| -rw-r--r-- | src/error_page/ProxyRequest.gemini | 5 | ||||
| -rw-r--r-- | src/error_page/ResourceNotFound.gemini | 5 | ||||
| -rw-r--r-- | src/error_page/Timeout.gemini | 5 | ||||
| -rw-r--r-- | src/error_page/TlsFailure.gemini | 5 | ||||
| -rw-r--r-- | src/error_page/Unauthorized.gemini | 7 | ||||
| -rw-r--r-- | src/error_page/UnknownError.gemini | 5 | ||||
| -rw-r--r-- | src/error_page/UntrustedHost.gemini | 6 |
14 files changed, 75 insertions, 0 deletions
diff --git a/src/error_page/BadRequest.gemini b/src/error_page/BadRequest.gemini new file mode 100644 index 0000000..99d6c56 --- /dev/null +++ b/src/error_page/BadRequest.gemini @@ -0,0 +1,5 @@ +# Bad Request + +Kristall tried to access the resource and made a mistake. + +> %1 diff --git a/src/error_page/ConnectionRefused.gemini b/src/error_page/ConnectionRefused.gemini new file mode 100644 index 0000000..62e85e6 --- /dev/null +++ b/src/error_page/ConnectionRefused.gemini @@ -0,0 +1,5 @@ +# Connection Refused + +The server refused the connection. Please check that your URL is valid and that the server actually serves the files, then try again. + +> %1 diff --git a/src/error_page/HostNotFound.gemini b/src/error_page/HostNotFound.gemini new file mode 100644 index 0000000..4d52f49 --- /dev/null +++ b/src/error_page/HostNotFound.gemini @@ -0,0 +1,5 @@ +# Host Not Found + +The server you tried to reach does not exist. Please verify that your URL is valid. + +> %1 diff --git a/src/error_page/InternalServerError.gemini b/src/error_page/InternalServerError.gemini new file mode 100644 index 0000000..93f9f32 --- /dev/null +++ b/src/error_page/InternalServerError.gemini @@ -0,0 +1,5 @@ +# Internal Server Error + +The server failed to handle your request. + +> %1 diff --git a/src/error_page/InvalidClientCertificate.gemini b/src/error_page/InvalidClientCertificate.gemini new file mode 100644 index 0000000..e7699ec --- /dev/null +++ b/src/error_page/InvalidClientCertificate.gemini @@ -0,0 +1,5 @@ +# Invalid Client Certificate + +Your client certificate is not accepted by the server. + +> %1 diff --git a/src/error_page/MistrustedHost.gemini b/src/error_page/MistrustedHost.gemini new file mode 100644 index 0000000..7673de3 --- /dev/null +++ b/src/error_page/MistrustedHost.gemini @@ -0,0 +1,7 @@ +# Mistrusted Host + +The host you tried to visit does not look trustworty anymore. The certificate changed since your last visit. + +If you still trust this host, please revoke trust in the settings menu, then reload the page. + +> %1 diff --git a/src/error_page/ProtocolViolation.gemini b/src/error_page/ProtocolViolation.gemini new file mode 100644 index 0000000..0cf15ec --- /dev/null +++ b/src/error_page/ProtocolViolation.gemini @@ -0,0 +1,5 @@ +# Protocol Violation + +The server did not serve the content you requested in a well-defined manner and Kristall could not process the data sent. + +> %1 diff --git a/src/error_page/ProxyRequest.gemini b/src/error_page/ProxyRequest.gemini new file mode 100644 index 0000000..d2dc615 --- /dev/null +++ b/src/error_page/ProxyRequest.gemini @@ -0,0 +1,5 @@ +# Proxy Request + +You tried to request a resource from one host that is actually located on another host. Please verify your URL. + +> %1 diff --git a/src/error_page/ResourceNotFound.gemini b/src/error_page/ResourceNotFound.gemini new file mode 100644 index 0000000..d5d53de --- /dev/null +++ b/src/error_page/ResourceNotFound.gemini @@ -0,0 +1,5 @@ +# Resource Not Found + +The resource you requested is not available. + +> %1 diff --git a/src/error_page/Timeout.gemini b/src/error_page/Timeout.gemini new file mode 100644 index 0000000..d7bc704 --- /dev/null +++ b/src/error_page/Timeout.gemini @@ -0,0 +1,5 @@ +# Timeout + +The server timed out while answering your response. + +> %1 diff --git a/src/error_page/TlsFailure.gemini b/src/error_page/TlsFailure.gemini new file mode 100644 index 0000000..4e7dc02 --- /dev/null +++ b/src/error_page/TlsFailure.gemini @@ -0,0 +1,5 @@ +# TLS Failure + +There was an error while negotiating the TLS encryption. + +> %1 diff --git a/src/error_page/Unauthorized.gemini b/src/error_page/Unauthorized.gemini new file mode 100644 index 0000000..0251abe --- /dev/null +++ b/src/error_page/Unauthorized.gemini @@ -0,0 +1,7 @@ +# Unauthorized + +You are not authorized to access the requested resource. + +To solve this problem, you may enable a client certificate for gemini:// resources and try again. + +> %1 diff --git a/src/error_page/UnknownError.gemini b/src/error_page/UnknownError.gemini new file mode 100644 index 0000000..fd48fb7 --- /dev/null +++ b/src/error_page/UnknownError.gemini @@ -0,0 +1,5 @@ +# Unknown Error + +Kristall tried its best but it failed doing so. This is an error that is not handled by any special logic and bubbled up to you. That's sad. ☹ + +> %1 diff --git a/src/error_page/UntrustedHost.gemini b/src/error_page/UntrustedHost.gemini new file mode 100644 index 0000000..41c21c0 --- /dev/null +++ b/src/error_page/UntrustedHost.gemini @@ -0,0 +1,6 @@ +# Untrusted Host + +The host you tried to visit is not trusted by Kristall. If you do trust this server, please add it to the list of trusted certificates! +(which is currently not possible ☹) + +> %1 |
