mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 05:29:38 -04:00
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:
21
app/templates/error/413.html
Normal file
21
app/templates/error/413.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user