You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/10/06 16:40:48 UTC

[GitHub] [airflow] potiuk commented on a diff in pull request #26880: Add separate error handler for 405(Method not allowed) errors

potiuk commented on code in PR #26880:
URL: https://github.com/apache/airflow/pull/26880#discussion_r989270163


##########
airflow/www/views.py:
##########
@@ -491,6 +491,19 @@ def not_found(error):
     )
 
 
+def method_not_allowed(error):
+    """Show Method Not Allowed on screen for any error in the Webserver"""
+    return (
+        render_template(
+            'airflow/method_not_allowed.html',

Review Comment:
   Agree. we could easily templatise the html template to rednder differently in  both cases.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org