From c1560ba3a2705397b3e285ea6fa54ed871584d45 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Wed, 23 Mar 2022 19:40:52 -0400 Subject: [PATCH] add dsn sentry logging to cs html gateway error pages --- Nginx/html/cs/404.html | 25 +++++++++++++++++++++++++ Nginx/html/cs/429.html | 27 +++++++++++++++++++++++++++ Nginx/html/cs/500.html | 42 ++++++++++++++++++++++++++++++++++++++++++ Nginx/html/cs/502.html | 42 ++++++++++++++++++++++++++++++++++++++++++ Nginx/html/cs/504.html | 42 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 178 insertions(+) create mode 100644 Nginx/html/cs/404.html create mode 100644 Nginx/html/cs/429.html create mode 100644 Nginx/html/cs/500.html create mode 100644 Nginx/html/cs/502.html create mode 100644 Nginx/html/cs/504.html diff --git a/Nginx/html/cs/404.html b/Nginx/html/cs/404.html new file mode 100644 index 0000000..1b92047 --- /dev/null +++ b/Nginx/html/cs/404.html @@ -0,0 +1,25 @@ + + + + Library of Code + + + +

404 NOT FOUND

+

The location you requested has not been found on this gateway.

+

User

+

If you're just visiting the site, here are the steps you can take.

+
    +
  1. You may have entered the wrong address, please check the URL and try again.
  2. +
  3. Check with the person who gave you the URL to ensure it's correct.
  4. +
+

Site Operator

+

If you're the operator of this site, here are the steps you can take.

+
    +
  1. This domain isn't registered with our systems. Please contact Engineering to bind this domain.
  2. +
  3. If none of these solved your issue, please contact the Department of Engineering at engineering@libraryofcode.org
  4. +
+
Library of Code sp-us
+ +
GlobalSign nv-sa
+ diff --git a/Nginx/html/cs/429.html b/Nginx/html/cs/429.html new file mode 100644 index 0000000..59582a5 --- /dev/null +++ b/Nginx/html/cs/429.html @@ -0,0 +1,27 @@ + + + + Library of Code + + + +

429 TOO MANY REQUESTS

+

You are sending too many requests, slow down.

+

User

+

If you're just visiting the site, here are the steps you can take.

+
    +
  1. Refrain from requesting the same resource or multiple resources on the same domain multiple times.
  2. +
  3. Try refreshing the page.
  4. +
  5. Try again in 5 minutes.
  6. +
+

Site Operator

+

If you're the operator of this site, here are the steps you can take.

+
    +
  1. CWG is receiving too many requests from your IP address to this upstream server link, slow down.
  2. +
  3. Make sure you're not requesting your domain multiple times in your frontend.
  4. +
  5. If none of these solved your issue, please contact the Department of Engineering at engineering@libraryofcode.org
  6. +
+
Library of Code sp-us
+ +
GlobalSign nv-sa
+ diff --git a/Nginx/html/cs/500.html b/Nginx/html/cs/500.html new file mode 100644 index 0000000..e805cac --- /dev/null +++ b/Nginx/html/cs/500.html @@ -0,0 +1,42 @@ + + + + Library of Code + + + + + +

500 Internal Server Error

+

Something went wrong while trying to process the request.

+

Click here to report this problem to the Department of Engineering

+

User

+

If you're just visiting the site, here are the steps you can take.

+
    +
  1. Try refreshing the page.
  2. +
  3. Try again in 5 minutes.
  4. +
+

Site Operator

+

If you're the operator of this site, here are the steps you can take.

+
    +
  1. An unknown error has occurred while attempting to process the request, there may be an issue with the gateway itself.
  2. +
  3. Make sure there's no announcement, issue, or maintenance posts. If there aren't, please contact us.
  4. +
  5. If none of these solved your issue, please contact the Department of Engineering at engineering@libraryofcode.org
  6. +
+
Library of Code sp-us
+ +
GlobalSign nv-sa
+ diff --git a/Nginx/html/cs/502.html b/Nginx/html/cs/502.html new file mode 100644 index 0000000..edc489d --- /dev/null +++ b/Nginx/html/cs/502.html @@ -0,0 +1,42 @@ + + + + Library of Code + + + + + +

502 Bad Gateway

+

We received an invalid response from the upstream server.

+

Click here to report this problem to the Department of Engineering

+

User

+

If you're just visiting the site, here are the steps you can take.

+
    +
  1. Try again in 5 minutes.
  2. +
  3. Contact the site owner for assistance.
  4. +
+

Site Operator

+

If you're the operator of this site, here are the steps you can take.

+
    +
  1. This code generally means our gateway received CONNECTION REFUSED while trying to communicate with your application, which means it's not listening on the port.
  2. +
  3. We could be listening on another port than the one you're using, make sure you're using the port given to you by Engineering.
  4. +
  5. If none of these solved your issue, please contact the Department of Engineering at engineering@libraryofcode.org
  6. +
+
Library of Code sp-us
+ +
GlobalSign nv-sa
+ diff --git a/Nginx/html/cs/504.html b/Nginx/html/cs/504.html new file mode 100644 index 0000000..9656a6d --- /dev/null +++ b/Nginx/html/cs/504.html @@ -0,0 +1,42 @@ + + + + Library of Code + + + + + +

504 Gateway Timeout

+

We couldn't contact the upstream server within a reasonable amount of time.

+

Click here to report this problem to the Department of Engineering

+

User

+

If you're just visiting the site, here are the steps you can take.

+
    +
  1. Try again in 5 minutes.
  2. +
  3. Contact the site owner for assistance.
  4. +
+

Site Operator

+

If you're the operator of this site, here are the steps you can take.

+
    +
  1. When 504 is thrown, this generally means the upstream application accepted the request, however it didn't respond within a reasonable amount of time. This may mean that there's an uncaught error in your application.
  2. +
  3. Check your server logs for errors.
  4. +
  5. If none of these solved your issue, please contact the Department of Engineering at engineering@libraryofcode.org
  6. +
+
Library of Code sp-us
+ +
GlobalSign nv-sa
+