Add error handling

This adds an /error/XXX endpoint that triggers the corresponding XXX
error code and its handling.

Related: https://github.com/alphagov/notifications-aws/pull/331
This commit is contained in:
Athanasios Voutsadakis
2018-03-08 17:49:08 +00:00
parent 57a77318c9
commit 249ae41c24
3 changed files with 31 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
{% extends "withoutnav_template.html" %}
{% block per_page_title %}File too big{% endblock %}
{% block maincolumn_content %}
<div class="grid-row">
<div class="column-two-thirds">
<h1 class="heading-large">
The file you uploaded was too big
</h1>
<div class="grid-row">
<div class="column-two-thirds">
<p>
Files must be smaller than 5 MB.
</p>
<p>
<a href="javascript: history.go(-1)">Go back and try again.</a>
</p>
</div>
</div>
</div>
</div>
{% endblock %}