Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

templates: Extend templates/404.html to support a 405 error message.

shanukunabada9125025
diff --git a/templates/404.html b/templates/404.html
index c78077728da..3d5a69e10b5 100644
--- a/templates/404.html
+++ b/templates/404.html
@@ -9,9 +9,15 @@
<img src="/static/images/400art.svg" alt=""/>
<div class="errorbox">
<div class="errorcontent">
+ {% if status_code == 405 %}
+ <h1 class="lead">Method not allowed (405)</h1>
+ <p>We know this is stressful, but we still love you.</p>
+ <p>If you'd like, you can <a href="mailto:{{ support_email }}?Subject=405%20error%20on%20%7Bwhich%20URL%3F%7D&Body=Hi%20there%21%0A%0AI%20was%20trying%20to%20do%20%7Bwhat%20were%20you%20trying%20to%20do%3F%7D%20at%20around%20%7Bwhen%20was%20this%3F%7D%20when%20I%20got%20a%20405%20error%20while%20accessing%20%7Bwhich%20URL%3F%7D.%0A%0AThanks!%0A%0ASincerely%2C%20%0A%0A%7BYour%20name%7D">drop us a line</a> to let us know what happened.</p>
+ {% else %}
<h1 class="lead">Page not found (404)</h1>
<p>We know this is stressful, but we still love you.</p>
<p>If you'd like, you can <a href="mailto:{{ support_email }}?Subject=404%20error%20on%20%7Bwhich%20URL%3F%7D&Body=Hi%20there%21%0A%0AI%20was%20trying%20to%20do%20%7Bwhat%20were%20you%20trying%20to%20do%3F%7D%20at%20around%20%7Bwhen%20was%20this%3F%7D%20when%20I%20got%20a%20404%20error%20while%20accessing%20%7Bwhich%20URL%3F%7D.%0A%0AThanks!%0A%0ASincerely%2C%20%0A%0A%7BYour%20name%7D">drop us a line</a> to let us know what happened.</p>
+ {% endif %}
</div>
</div>