Skip to content

Commit aa13b7b

Browse files
committed
Added some 400 icons and removed non-existent 430
1 parent af1ef20 commit aa13b7b

File tree

9 files changed

+34
-10
lines changed

9 files changed

+34
-10
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,22 @@ Below is a list of all available error pages with demo links:
3131
| `411` | `411.html` | Length Required | [Demo 411](https://tobidi0410.github.io/error-pages/http-411.html) ||
3232
| `412` | `412.html` | Precondition Failed | [Demo 412](https://tobidi0410.github.io/error-pages/http-412.html) ||
3333
| `413` | `413.html` | Payload Too Large | [Demo 413](https://tobidi0410.github.io/error-pages/http-413.html) ||
34-
| `414` | `414.html` | URI Too Long | [Demo 414](https://tobidi0410.github.io/error-pages/http-414.html) | |
34+
| `414` | `414.html` | URI Too Long | [Demo 414](https://tobidi0410.github.io/error-pages/http-414.html) | |
3535
| `415` | `415.html` | Unsupported Media Type | [Demo 415](https://tobidi0410.github.io/error-pages/http-415.html) ||
3636
| `416` | `416.html` | Range Not Satisfiable | [Demo 416](https://tobidi0410.github.io/error-pages/http-416.html) ||
3737
| `417` | `417.html` | Expectation Failed | [Demo 417](https://tobidi0410.github.io/error-pages/http-417.html) ||
3838
| `418` | `418.html` | I'm a teapot | [Demo 418](https://tobidi0410.github.io/error-pages/http-418.html) ||
39-
| `419` | `419.html` | Authentication Timeout | [Demo 419](https://tobidi0410.github.io/error-pages/http-419.html) | |
39+
| `419` | `419.html` | Authentication Timeout | [Demo 419](https://tobidi0410.github.io/error-pages/http-419.html) | |
4040
| `420` | `420.html` | Method Failure | [Demo 420](https://tobidi0410.github.io/error-pages/http-420.html) ||
4141
| `421` | `421.html` | Misdirected Request | [Demo 421](https://tobidi0410.github.io/error-pages/http-421.html) ||
4242
| `422` | `422.html` | Unprocessable Entity | [Demo 422](https://tobidi0410.github.io/error-pages/http-422.html) ||
43-
| `423` | `423.html` | Locked | [Demo 423](https://tobidi0410.github.io/error-pages/http-423.html) | |
43+
| `423` | `423.html` | Locked | [Demo 423](https://tobidi0410.github.io/error-pages/http-423.html) | |
4444
| `424` | `424.html` | Failed Dependency | [Demo 424](https://tobidi0410.github.io/error-pages/http-424.html) ||
4545
| `425` | `425.html` | Too Early | [Demo 425](https://tobidi0410.github.io/error-pages/http-425.html) ||
4646
| `426` | `426.html` | Upgrade Required | [Demo 426](https://tobidi0410.github.io/error-pages/http-426.html) ||
47-
| `427` | `427.html` | Unassigned | [Demo 427](https://tobidi0410.github.io/error-pages/http-427.html) ||
4847
| `428` | `428.html` | Precondition Required | [Demo 428](https://tobidi0410.github.io/error-pages/http-428.html) ||
49-
| `429` | `429.html` | Too Many Requests | [Demo 429](https://tobidi0410.github.io/error-pages/http-429.html) | |
50-
| `430` | `430.html` | Unassigned | [Demo 430](https://tobidi0410.github.io/error-pages/http-430.html) ||
48+
| `429` | `429.html` | Too Many Requests | [Demo 429](https://tobidi0410.github.io/error-pages/http-429.html) | |
49+
| `431` | `431.html` | Request Header Fields Too Large | [Demo 431](https://tobidi0410.github.io/error-pages/http-431.html) ||
5150
| `500` | `500.html` | Internal Server Error | [Demo 500](https://tobidi0410.github.io/error-pages/http-500.html) ||
5251
| `501` | `501.html` | Not Implemented | [Demo 501](https://tobidi0410.github.io/error-pages/http-501.html) ||
5352
| `502` | `502.html` | Bad Gateway | [Demo 502](https://tobidi0410.github.io/error-pages/http-502.html) ||
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- var code = 430;
1+
- var code = 431;
22
- var title = "Request Header Fields Too Large!";
33
- var description = "The request headers are too large for the server to process";
44
- var enduserReasons = ['Too much metadata is included in the request'];

src/http-error.pug

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ html(lang="en" class="w-full h-full")
1010
div(class="ErrorIllustration flex-grow basis-0 flex flex-col items-center")
1111
include icons/http-icon
1212
+HTTPIcon(code)
13-
//img(src=img class="w-64 h-64 min-w-64 min-h-64 rounded-xl")
14-
//object(type="image/svg+xml",data=img)
15-
div(class="ErrorDetails flex-grow basis-0 flex flex-col min-w-64 min-h-64")
13+
div(class="ErrorDetails flex-grow basis-0 flex flex-col")
1614
div(class="ErrorCode text-7xl text-neutral-800 dark:text-neutral-300 font-bold") #{code}
1715
div(class="ErrorText text-4xl text-neutral-800 dark:text-neutral-300 font-bold mt-3") #{title}
1816
include components/expandable
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mixin HTTP414Icon()
2+
img(src="data-url:../icons/raw/twemoji--label.svg", class="absolute top-0 left-0 h-[100%] w-[80%] rotate-315", draggable="false")
3+
div(class="absolute top-[9%] bottom-0 left-[25%] h-fit m-auto font-extrabold text-2xl text-black/80") ABCDEFG...
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mixin HTTP419Icon()
2+
img(src="data-url:../icons/raw/twemoji--identification-card.svg", class="absolute top-0 left-0 h-[100%] w-[85%]", draggable="false")
3+
img(src="data-url:../icons/raw/twemoji--hourglass-done.svg", class="absolute m-auto bottom-[7%] right-0 h-[40%] w-[40%]", draggable="false")
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
mixin HTTP423Icon()
2+
img(src="data-url:../icons/raw/twemoji--locked.svg", class="absolute top-0 left-0 h-[100%] w-[100%]", draggable="false")
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
mixin HTTP429Icon()
2+
img(src="data-url:../icons/raw/twemoji--page-facing-up.svg", class="absolute left-0 m-auto top-0 h-[100%] w-[50%]", draggable="false")
3+
img(src="data-url:../icons/raw/twemoji--page-facing-up.svg", class="absolute left-[20%] m-auto top-[10%] h-[100%] w-[50%]", draggable="false")
4+
img(src="data-url:../icons/raw/twemoji--page-facing-up.svg", class="absolute left-[40%] m-auto top-[20%] h-[100%] w-[50%]", draggable="false")
5+
img(src="data-url:../icons/raw/twemoji--stop-sign.svg", class="absolute m-auto left-[60%] right-0 top-[60%] h-[40%] w-[40%]", draggable="false")
6+
div(class="absolute right-[7%] bottom-[14%] font-extrabold") STOP!

src/icons/http-icon.pug

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ include ./composed/http-402-icon
66
include ./composed/http-403-icon
77
include ./composed/http-404-icon
88
include ./composed/http-405-icon
9+
include ./composed/http-414-icon
910
include ./composed/http-418-icon
11+
include ./composed/http-419-icon
12+
include ./composed/http-423-icon
13+
include ./composed/http-429-icon
1014
include ./composed/http-500-icon
1115
include ./composed/http-501-icon
1216
include ./composed/http-502-icon
@@ -33,8 +37,16 @@ mixin HTTPIcon(code)
3337
+HTTP404Icon()
3438
else if(code == 405)
3539
+HTTP405Icon()
40+
else if(code == 414)
41+
+HTTP414Icon()
3642
else if(code == 418)
3743
+HTTP418Icon()
44+
else if(code == 419)
45+
+HTTP419Icon()
46+
else if(code == 423)
47+
+HTTP423Icon()
48+
else if(code == 429)
49+
+HTTP429Icon()
3850
else if(code == 500)
3951
+HTTP500Icon()
4052
else if(code == 501)

src/icons/raw/twemoji--locked.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)