Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 429 error page #3357

Merged
merged 1 commit into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions app/grandchallenge/core/templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@

{% block content %}
<h2>Not Found</h2>
{% if exception %}
{{ exception }}
{% else %}
<p>
This content was not found.
</p>
{% endif %}
<p>
This content was not found.
</p>
{% endblock %}
10 changes: 10 additions & 0 deletions app/grandchallenge/core/templates/429.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% extends "base.html" %}

{% block title %}Too Many Requests{% endblock %}

{% block content %}
<h2>Too Many Requests</h2>
<p>
You have made too many requests to the server. Please wait a few minutes before trying again.
</p>
{% endblock %}
23 changes: 10 additions & 13 deletions app/grandchallenge/core/templates/500.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Server Error</title>
</head>
<body>
{% extends "base.html" %}

<h3>Unexpected Error</h3>
<p>
Something went wrong...
</p>
{% block title %}Server Error{% endblock %}

</body>
</html>
{% block content %}
<h2>Server Error</h2>
<p>
An unexpected error occurred while processing your request.
Our operations team has been informed and will investigate the issue.
Please try again later.
</p>
{% endblock %}