diff --git a/biscuit/core/views.py b/biscuit/core/views.py index 6a160314ddc63125ed1d9d2ca2b78cd8d4bd5b07..36aabc37ed722d26d2986ac05d769e56cfd539e4 100644 --- a/biscuit/core/views.py +++ b/biscuit/core/views.py @@ -20,12 +20,13 @@ def error_handler(status: int) -> Callable[..., HttpResponse]: context = {} context['status'] = status - context['caption'] = _('Page not found') context['admins'] = settings.ADMINS if status == 404: context['message'] = _('This page does not exist. If you were redirected by a link on an external page, it is possible that that link was outdated.') + context['caption'] = _('Page not found') elif status == 500: + context['caption'] = _('Internal server error') context['message'] = _('An unexpected error has occurred.') return render(request, 'error.html', context, status=status)