Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show custom error page on 502 BadGateway #147

Merged
merged 1 commit into from
Jul 3, 2024
Merged

Show custom error page on 502 BadGateway #147

merged 1 commit into from
Jul 3, 2024

Conversation

podliashanyk
Copy link
Contributor

Closes #146

Instead of prepending error message to an existing page, the whole page is re-swapped with a custom 502.html:

Screenshot 2024-07-03 at 10 06 04

@podliashanyk podliashanyk added bug Something isn't working beta Part of beta release labels Jul 3, 2024
@podliashanyk podliashanyk requested a review from hmpf July 3, 2024 08:24
@podliashanyk podliashanyk self-assigned this Jul 3, 2024
Comment on lines +1 to +11
{% block content %}
<main
class="py-8 px-4 mx-auto max-w-screen-xl lg:py-16 lg:px-6 bg-slate-900 text-sky-200/80"
>
<section class="mx-auto max-w-screen-sm text-center">
<h1 class="mb-4 text-7xl tracking-tight font-extrabold lg:text-9xl">502</h1>
<p class="mb-4 text-3xl tracking-tight font-bold md:text-4xl">Bad Gateway</p>
<p class="mb-4 text-lg font-light text-teal-300">{{ err_msg }}</p>
</section>
</main>
{% endblock %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Polish: mention that this is a problem on the server, not necessarily a problem with howitz code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta Part of beta release bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Multiple error message bars prepended to the page on 502 BadGateway
2 participants