mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 08:39:49 -04:00
Merge pull request #4095 from alphagov/remove-413-error-177535141
Remove redundant 413 error page
This commit is contained in:
@@ -426,10 +426,6 @@ def register_errorhandlers(application): # noqa (C901 too complex)
|
|||||||
def handle_gone(error):
|
def handle_gone(error):
|
||||||
return _error_response(410)
|
return _error_response(410)
|
||||||
|
|
||||||
@application.errorhandler(413)
|
|
||||||
def handle_payload_too_large(error):
|
|
||||||
return _error_response(413)
|
|
||||||
|
|
||||||
@application.errorhandler(404)
|
@application.errorhandler(404)
|
||||||
def handle_not_found(error):
|
def handle_not_found(error):
|
||||||
return _error_response(404)
|
return _error_response(404)
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
{% extends "withoutnav_template.html" %}
|
|
||||||
{% block per_page_title %}File too big{% endblock %}
|
|
||||||
{% block maincolumn_content %}
|
|
||||||
<div class="govuk-grid-row">
|
|
||||||
<div class="govuk-grid-column-two-thirds">
|
|
||||||
<h1 class="heading-large">
|
|
||||||
The file you uploaded was too big
|
|
||||||
</h1>
|
|
||||||
<div class="govuk-grid-row">
|
|
||||||
<div class="govuk-grid-column-two-thirds">
|
|
||||||
<p class="govuk-body">
|
|
||||||
Files must be smaller than 5 MB.
|
|
||||||
</p>
|
|
||||||
<p class="govuk-body">
|
|
||||||
<a class="govuk-link govuk-link--no-visited-state" href="javascript: history.go(-1)">Go back and try again.</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
Reference in New Issue
Block a user