diff --git a/config/custom-error-page/error-page.conf b/config/custom-error-page/error-page.conf index e819e63..71706cf 100644 --- a/config/custom-error-page/error-page.conf +++ b/config/custom-error-page/error-page.conf @@ -18,4 +18,9 @@ location /inter-roman-var.woff2 { root /usr/share/nginx/html/custom-error-page/; } +location /bad_gateway_meme.png { + auth_basic off; + root /usr/share/nginx/html/custom-error-page/; +} + error_page 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 421 422 423 424 425 426 428 429 431 451 494 495 496 497 500 501 502 503 504 505 506 507 508 510 511 /custom-error-page.html; diff --git a/templates/custom-error-page/bad_gateway_meme.png b/templates/custom-error-page/bad_gateway_meme.png new file mode 100644 index 0000000..c71cd13 Binary files /dev/null and b/templates/custom-error-page/bad_gateway_meme.png differ diff --git a/templates/custom-error-page/custom-error-page.css b/templates/custom-error-page/custom-error-page.css index 4b95be7..b466b33 100644 --- a/templates/custom-error-page/custom-error-page.css +++ b/templates/custom-error-page/custom-error-page.css @@ -43,6 +43,22 @@ html { justify-content: center; align-items: center; } +/* Define individual background color for http status codes */ +div[class*='status-1'] { + background-color: #78909C !important; +} +div[class*='status-2'] { + background-color: #1e88e5 !important; +} +div[class*='status-3'] { + background-color: #f44336 !important; +} +div[class*='status-4'] { + background-color: #f44336 !important; +} +div[class*='status-5'] { + background-color: #f1c40f !important; +} @media (max-width: 1023px) { .left svg { min-height: 200px; diff --git a/templates/custom-error-page/custom-error-page.html b/templates/custom-error-page/custom-error-page.html index 76d006d..bebd07b 100644 --- a/templates/custom-error-page/custom-error-page.html +++ b/templates/custom-error-page/custom-error-page.html @@ -13,7 +13,7 @@