summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates/error.html
blob: 2eafa8db7e364ffd52c1c8f0d6be403a85769c8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{% extends "base.html" %}

{% block title %}
{{ error.status_code }} - {{ super() }}
{% endblock %}

{% block main %}
<center>
  <div style="font-size: 8em;">{{ error.status_code }}</div>
  <div style="font-size: 3em;">
    {% if error.status_code == 404 %}
      {% trans %}Not Found{% endtrans %}
    {% elif error.status_code == 403 %}
      {% trans %}Access Forbidden{% endtrans %}
    {% elif error.status_code == 400 %}
      {% trans %}Request Error{% endtrans %}
    {% elif error.status_code > 500 and error.status_code < 600 %}
      {% trans %}Internal Error{% endtrans %}
    {% endif %}
  </div>
</center>
{% if error.detail and error.detail not in ["Not Found", "Server Error", "Bad Request"] %}
  <div class="ui icon error message">
    <i class="ban icon"></i>
    <div class="content">
      <div class="header"></div>
      <p>{{ error.detail }}
    </div>
  </div>
{% endif %}
{% endblock %}