imperialwool commited on
Commit
398212d
1 Parent(s): 73ee427

method not allowed now have beauty?? page

Browse files
app.py CHANGED
@@ -18,6 +18,8 @@ def ratelimit_handler(e): return render_template('ratelimit.html')
18
  def forbidden_handler(e): return render_template('forbidden.html')
19
  @app.errorhandler(404)
20
  def ratelimit_handler(e): return render_template('notfound.html')
 
 
21
  @app.errorhandler(500)
22
  def ratelimit_handler(e): return render_template('intervalservererror.html')
23
  @app.errorhandler(502)
 
18
  def forbidden_handler(e): return render_template('forbidden.html')
19
  @app.errorhandler(404)
20
  def ratelimit_handler(e): return render_template('notfound.html')
21
+ @app.errorhandler(405)
22
+ def ratelimit_handler(e): return render_template('methodnotallowed.html')
23
  @app.errorhandler(500)
24
  def ratelimit_handler(e): return render_template('intervalservererror.html')
25
  @app.errorhandler(502)
templates/badgateway.html CHANGED
@@ -1 +1 @@
1
- <html><head><title>502 Bad Gateway</title></head><body><center><h1>502 Bad Gateway</h1></center><hr><center>mangoo</center></body></html>
 
1
+ <html><head><title>502 Bad Gateway</title></head><body><center><h1>502 Bad Gateway</h1></center><hr><center>openresty</center></body></html>
templates/forbidden.html CHANGED
@@ -1 +1 @@
1
- <html><head><title>403 Forbidden</title></head><body><center><h1>403 Forbidden</h1></center><hr><center>mangoo</center></body></html>
 
1
+ <html><head><title>403 Forbidden</title></head><body><center><h1>403 Forbidden</h1></center><hr><center>openresty</center></body></html>
templates/intervalservererror.html CHANGED
@@ -1 +1 @@
1
- <html><head><title>500 Internal Server Error</title></head><body><center><h1>500 Internal Server Error</h1></center><hr><center>mangoo</center></body></html>
 
1
+ <html><head><title>500 Internal Server Error</title></head><body><center><h1>500 Internal Server Error</h1></center><hr><center>openresty</center></body></html>
templates/methodnotallowed.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <html><head><title>405 Method Not Allowed</title></head><body><center><h1>405 Method Not Allowed</h1></center><hr><center>openresty</center></body></html>
templates/notfound.html CHANGED
@@ -1 +1 @@
1
- <html><head><title>404 Not Found</title></head><body><center><h1>404 Not Found</h1></center><hr><center>mangoo</center></body></html>
 
1
+ <html><head><title>404 Not Found</title></head><body><center><h1>404 Not Found</h1></center><hr><center>openresty</center></body></html>
templates/ratelimit.html CHANGED
@@ -1 +1 @@
1
- <html><head><title>429 Too Many Requests</title></head><body><center><h1>429 Too Many Requests</h1></center><hr><center>mangoo</center></body></html>
 
1
+ <html><head><title>429 Too Many Requests</title></head><body><center><h1>429 Too Many Requests</h1></center><hr><center>openresty</center></body></html>