diff --git a/README.md b/README.md
index f86813d..23c2489 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@ HTTP status codes for nginx, but better.
## Original post
-Collection of [@yassie_j@0w0.is](https://0w0.is/yassie_j)'s HTTP response status codes:
+Collection of HTTP status codes, from [@yassie_j@0w0.is](https://0w0.is/yassie_j) and a couple others:
- 403 [You Shall Not Pass](https://0w0.is/notice/AZpeq9kdiVbKocpo0m)
- 301 [Your Princess in in Another Castle](https://0w0.is/notice/AZpfAtcGtx1gr4oHVg)
@@ -31,10 +31,7 @@ Collection of [@yassie_j@0w0.is](https://0w0.is/yassie_j)'s HTTP response status
- (300 Multiple Choices is the actual error code? Geddit?)
- 404 [You Made A Typo In The URL Didn't You](https://0w0.is/notice/AZpik5MrV9JpId4cTI)
- 423 [Fine Then Keep Your Secrets](https://0w0.is/notice/AZpj18ZUqKTa9u78Pg)
-
-## Additions
-
-- 409 [i'm scared stop asking me q.q](https://meow.woem.cat/notes/9lgiyx2aahggxb4d)
+- 429 [i'm scared stop asking me q.q](https://meow.woem.cat/notes/9lgiyx2aahggxb4d)
## nginx rule
diff --git a/nginx-create-pages.py b/nginx-create-pages.py
index 40a6182..da3da36 100644
--- a/nginx-create-pages.py
+++ b/nginx-create-pages.py
@@ -2,8 +2,10 @@ import requests
import os
import json
+# Replace with a known-404 page for whatever you want. Doing this so the nginx version is accurate.
url_404 = 'https://askiiart.net/sdlfjsadljfs'
html_404 = str(requests.get(url_404).text)
+boykisser_url = 'https://askiiart.net/assets/boykisser.png'
try:
os.mkdir('pages')
@@ -15,8 +17,17 @@ with open('status-codes.json', 'r') as codes_file:
for code in codes_dict:
new_html = html_404.replace('404 Not Found', f'{code} {codes_dict[code]}')
+ if code == "404":
+ new_html = new_html.replace("
404 You Made A Typo In The URL, Didn't You?
",
+ f"404 You Made A Typo In The URL, Didn't You?
300 Poll', '300 Poll
57% Yes, 43% No
(300 Multiple Choices is the actual error code? Geddit?)')
with open(f'pages/{code}.html', 'w') as new_file:
new_file.write(new_html)
-exit()
\ No newline at end of file
+exit()
diff --git a/pages/300.html b/pages/300.html
index f49a947..f36925d 100644
--- a/pages/300.html
+++ b/pages/300.html
@@ -1,7 +1,7 @@
300 Poll
-300 Poll
+300 Poll
57% Yes, 43% No
(300 Multiple Choices is the actual error code? Geddit?)
nginx/1.25.3
diff --git a/pages/404.html b/pages/404.html
index 0b2d810..dc7ea9b 100644
--- a/pages/404.html
+++ b/pages/404.html
@@ -1,7 +1,7 @@
404 You Made A Typo In The URL, Didn't You?
-404 You Made A Typo In The URL, Didn't You?
+404 You Made A Typo In The URL, Didn't You?
nginx/1.25.3
diff --git a/pages/504.html b/pages/504.html
new file mode 100644
index 0000000..2270e2e
--- /dev/null
+++ b/pages/504.html
@@ -0,0 +1,7 @@
+
+504 Gateway died on the way back from its home planet
+
+504 Gateway died on the way back from its home planet
+
nginx/1.25.3
+
+
diff --git a/status-codes.json b/status-codes.json
index 5bb387e..16e8151 100644
--- a/status-codes.json
+++ b/status-codes.json
@@ -1,21 +1,22 @@
{
- "403": "You Shall Not Pass",
- "301": "Your Princess Is In Another Castle",
- "451": "Oi, You Got a Loicense For That Mate?",
+ "202": "You In My Heart",
"204": "Head Empty No Thoughts",
+ "300": "Poll",
+ "301": "Your Princess Is In Another Castle",
+ "401": "This Is Against TOS You've Been Reported",
"402": "Come Back When You're a Little MMMMMM Richer",
+ "403": "You Shall Not Pass",
+ "404": "You Made A Typo In The URL, Didn't You?",
+ "406": "I Can't Believe You've Done This",
+ "410": "Your Father",
"413": "Me After a Night With Your Mother",
"417": "Me After 20-something Years With My Mother",
- "502": "Forgive Me Father For My Gateway Has Sinned",
- "508": "508 508 508 508 508 508 508 508 508 508 508 508 508 508",
"418": "I'm a Teapot",
- "410": "Your Father",
- "406": "I Can't Believe You've Done This",
- "401": "This Is Against TOS You've Been Reported",
- "425": "Sorry This Never Happens With Other Women",
- "202": "You In My Heart",
- "300": "Poll",
- "404": "You Made A Typo In The URL, Didn't You?",
"423": "Fine Then, Keep Your Secrets",
- "429": "i'm scared stop asking me q.q"
+ "425": "Sorry This Never Happens With Other Women",
+ "429": "i'm scared stop asking me q.q",
+ "451": "Oi, You Got a Loicense For That Mate?",
+ "502": "Forgive Me Father For My Gateway Has Sinned",
+ "504": "Gateway died on the way back from its home planet",
+ "508": "508 508 508 508 508 508 508 508 508 508 508 508 508 508"
}
\ No newline at end of file
diff --git a/status-codes.tsv b/status-codes.tsv
deleted file mode 100644
index 0d5c6e9..0000000
--- a/status-codes.tsv
+++ /dev/null
@@ -1,19 +0,0 @@
-403;You Shall Not Pass
-301;Your Princess Is In Another Castle
-451;Oi, You Got a Loicense For That Mate?
-204;Head Empty No Thoughts
-402;Come Back When You're a Little MMMMMM Richer
-413;Me After a Night With Your Mother
-417;Me After 20-something Years With My Mother
-502;Forgive Me Father For My Gateway Has Sinned
-508;508 508 508 508 508 508 508 508 508 508 508 508 508 508
-418;I'm a Teapot
-410;Your Father
-406;I Can't Believe You've Done This
-401;This Is Against TOS You've Been Reported
-425;Sorry This Never Happens With Other Women
-202;You In My Heart
-300;Poll
-404;You Made A Typo In The URL, Didn't You?
-423;Fine Then, Keep Your Secrets
-429;i'm scared stop asking me q.q
\ No newline at end of file