Merge pull request #4095 from alphagov/remove-413-error-177535141

Remove redundant 413 error page
This commit is contained in:
Ben Thorner
2021-12-15 10:32:53 +00:00
committed by GitHub
2 changed files with 0 additions and 25 deletions

View File

@@ -426,10 +426,6 @@ def register_errorhandlers(application): # noqa (C901 too complex)
def handle_gone(error):
return _error_response(410)
@application.errorhandler(413)
def handle_payload_too_large(error):
return _error_response(413)
@application.errorhandler(404)
def handle_not_found(error):
return _error_response(404)

View File

@@ -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 %}