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 06:35:56 UTC

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

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


##########
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:
   I feel we could merge this and the 404 template instead of duplicating most of the content.



-- 
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