From d342537a59d1576963fecee17232553940ebcdf8 Mon Sep 17 00:00:00 2001 From: Miraty Date: Thu, 16 Feb 2023 23:06:12 +0100 Subject: [PATCH] Move http status pages to this repository --- http-errors/400.html | 15 +++++++++++++++ http-errors/403.html | 15 +++++++++++++++ http-errors/404.en.html | 19 +++++++++++++++++++ http-errors/404.fr.html | 19 +++++++++++++++++++ http-errors/404.php | 5 +++++ http-errors/405.html | 15 +++++++++++++++ http-errors/410.html | 15 +++++++++++++++ http-errors/418.html | 15 +++++++++++++++ http-errors/500.en.html | 19 +++++++++++++++++++ http-errors/500.fr.html | 19 +++++++++++++++++++ http-errors/500.php | 5 +++++ http-errors/502.html | 19 +++++++++++++++++++ http-errors/503.en.html | 19 +++++++++++++++++++ http-errors/503.fr.html | 19 +++++++++++++++++++ http-errors/503.php | 5 +++++ http-errors/504.html | 19 +++++++++++++++++++ http-errors/default-domain.html | 15 +++++++++++++++ http-errors/default-ip.html | 15 +++++++++++++++ http-errors/index.php | 8 ++++++++ http-errors/lib.php | 10 ++++++++++ http-errors/unsecure.en.html | 23 +++++++++++++++++++++++ http-errors/unsecure.fr.html | 23 +++++++++++++++++++++++ http-errors/unsecure.php | 7 +++++++ router.php | 12 ++++-------- 24 files changed, 347 insertions(+), 8 deletions(-) create mode 100644 http-errors/400.html create mode 100644 http-errors/403.html create mode 100644 http-errors/404.en.html create mode 100644 http-errors/404.fr.html create mode 100644 http-errors/404.php create mode 100644 http-errors/405.html create mode 100644 http-errors/410.html create mode 100644 http-errors/418.html create mode 100644 http-errors/500.en.html create mode 100644 http-errors/500.fr.html create mode 100644 http-errors/500.php create mode 100644 http-errors/502.html create mode 100644 http-errors/503.en.html create mode 100644 http-errors/503.fr.html create mode 100644 http-errors/503.php create mode 100644 http-errors/504.html create mode 100644 http-errors/default-domain.html create mode 100644 http-errors/default-ip.html create mode 100644 http-errors/index.php create mode 100644 http-errors/lib.php create mode 100644 http-errors/unsecure.en.html create mode 100644 http-errors/unsecure.fr.html create mode 100644 http-errors/unsecure.php diff --git a/http-errors/400.html b/http-errors/400.html new file mode 100644 index 0000000..6330cbe --- /dev/null +++ b/http-errors/400.html @@ -0,0 +1,15 @@ + + + + + + Bad request · HTTP 400 + + +

Bad request

+

+ The request is malformed. +

+ HTTP 400 + + diff --git a/http-errors/403.html b/http-errors/403.html new file mode 100644 index 0000000..1c2fa6e --- /dev/null +++ b/http-errors/403.html @@ -0,0 +1,15 @@ + + + + + + Access forbidden · HTTP 403 + + +

Access forbidden

+

+ The server refused to process the request for security reasons. +

+ HTTP 403 + + diff --git a/http-errors/404.en.html b/http-errors/404.en.html new file mode 100644 index 0000000..d09c1d5 --- /dev/null +++ b/http-errors/404.en.html @@ -0,0 +1,19 @@ + + + + + + File not found · HTTP 404 + + +

File not found

+

+ The server did not find anything at the requested address. +

+ + HTTP 404 + + diff --git a/http-errors/404.fr.html b/http-errors/404.fr.html new file mode 100644 index 0000000..b9748e7 --- /dev/null +++ b/http-errors/404.fr.html @@ -0,0 +1,19 @@ + + + + + + Fichier introuvable · HTTP 404 + + +

Fichier introuvable

+

+ Le serveur n'a rien trouvé à l'adresse demandée. +

+ + HTTP 404 + + diff --git a/http-errors/404.php b/http-errors/404.php new file mode 100644 index 0000000..fe7d286 --- /dev/null +++ b/http-errors/404.php @@ -0,0 +1,5 @@ + + + + + + Method Not Allowed · HTTP 405 + + +

Method Not Allowed

+

+ The request method is not supported for this resource. +

+ HTTP 405 + + diff --git a/http-errors/410.html b/http-errors/410.html new file mode 100644 index 0000000..7b44cd6 --- /dev/null +++ b/http-errors/410.html @@ -0,0 +1,15 @@ + + + + + + Gone · HTTP 410 + + +

Gone

+

+ The requested resource is not available anymore. +

+ HTTP 410 + + diff --git a/http-errors/418.html b/http-errors/418.html new file mode 100644 index 0000000..fcf0bf9 --- /dev/null +++ b/http-errors/418.html @@ -0,0 +1,15 @@ + + + + + + I'm a teapot · HTTP 418 + + +

I'm a teapot

+

+ Your coffee cannot be brewed because this server is a teapot. +

+ HTTP 418 + + diff --git a/http-errors/500.en.html b/http-errors/500.en.html new file mode 100644 index 0000000..88a41d5 --- /dev/null +++ b/http-errors/500.en.html @@ -0,0 +1,19 @@ + + + + + + Server error · HTTP 500 + + +

Server error

+

+ The server encountered an error and is unable to satisfy your request. +

+ + HTTP 500 + + diff --git a/http-errors/500.fr.html b/http-errors/500.fr.html new file mode 100644 index 0000000..25926e4 --- /dev/null +++ b/http-errors/500.fr.html @@ -0,0 +1,19 @@ + + + + + + Erreur du serveur · HTTP 500 + + +

Erreur du serveur

+

+ Le serveur a rencontré une erreur et ne peut pas répondre à cette requête. +

+ + HTTP 500 + + diff --git a/http-errors/500.php b/http-errors/500.php new file mode 100644 index 0000000..30f23af --- /dev/null +++ b/http-errors/500.php @@ -0,0 +1,5 @@ + + + + + + Bad gateway · HTTP 502 + + +

Bad gateway

+

+ The backend server encountered an error and is unable to satisfy your request. +

+ + HTTP 502 + + diff --git a/http-errors/503.en.html b/http-errors/503.en.html new file mode 100644 index 0000000..7e84963 --- /dev/null +++ b/http-errors/503.en.html @@ -0,0 +1,19 @@ + + + + + + Service unavailable · HTTP 503 + + +

Service unavailable

+

+ The server cannot handle the request, because it is overloaded or down for maintenance. +

+ + HTTP 503 + + diff --git a/http-errors/503.fr.html b/http-errors/503.fr.html new file mode 100644 index 0000000..c947e50 --- /dev/null +++ b/http-errors/503.fr.html @@ -0,0 +1,19 @@ + + + + + + Service indisponible · HTTP 503 + + +

Service indisponible

+

+ Le serveur ne peut pas répondre à cette requête, car il est surchargé ou en cours de maintenance. +

+ + HTTP 503 + + diff --git a/http-errors/503.php b/http-errors/503.php new file mode 100644 index 0000000..f8ed3c2 --- /dev/null +++ b/http-errors/503.php @@ -0,0 +1,5 @@ + + + + + + Gateway timeout · HTTP 504 + + +

Gateway timeout

+

+ The backend server did not send a timely response. +

+ + HTTP 504 + + diff --git a/http-errors/default-domain.html b/http-errors/default-domain.html new file mode 100644 index 0000000..c1d3c69 --- /dev/null +++ b/http-errors/default-domain.html @@ -0,0 +1,15 @@ + + + + + + Broken site + + +

Broken site

+

+ The site you're trying to reach is misconfigured. This domain seems to be pointing to this server, but this server is not aware of a site using this domain. +

+ HTTP 404 + + diff --git a/http-errors/default-ip.html b/http-errors/default-ip.html new file mode 100644 index 0000000..b12b3c8 --- /dev/null +++ b/http-errors/default-ip.html @@ -0,0 +1,15 @@ + + + + + + Nothing here + + +

Nothing here

+

+ You reached the default site of this server directly using its IP address. There's nothing for you here. +

+ HTTP 404 + + diff --git a/http-errors/index.php b/http-errors/index.php new file mode 100644 index 0000000..5181e4f --- /dev/null +++ b/http-errors/index.php @@ -0,0 +1,8 @@ + + + + + + TLS required + + +

TLS required

+

+ This site does not accept HTTP requests without TLS. +

+

What happened?

+

+ You made a request using HTTP without TLS to the server, which refused this for privacy and security reasons, as unsecure HTTP connections can be watched and modified by any device on the way. +

+

How to solve this?

+

+ You can replace the URI scheme http by https to tell your client to make the request using TLS. +

+ HTTP 403 + + diff --git a/http-errors/unsecure.fr.html b/http-errors/unsecure.fr.html new file mode 100644 index 0000000..655cb2b --- /dev/null +++ b/http-errors/unsecure.fr.html @@ -0,0 +1,23 @@ + + + + + + Nécessite TLS + + +

Nécessite TLS

+

+ Ce site n'accepte pas les connexions HTTP sans TLS. +

+

Que s'est-il passé ?

+

+ Vous avez envoyé une requête HTTP sans TLS au serveur, qui l'a refusée pour des raisons de sécurité et de confidentialité. +

+

Comment régler ce problème ?

+

+ Vous pouvez remplacer le schéma d'URI http par https pour indiquer à votre client de faire la requête avec TLS. +

+ HTTP 403 + + diff --git a/http-errors/unsecure.php b/http-errors/unsecure.php new file mode 100644 index 0000000..3081f64 --- /dev/null +++ b/http-errors/unsecure.php @@ -0,0 +1,7 @@ +