Spaces:
Running
Running
Commit
·
505fb43
1
Parent(s):
af98f80
Update app.py
Browse files
app.py
CHANGED
@@ -14,17 +14,17 @@ app.config['JSON_AS_ASCII'] = False
|
|
14 |
|
15 |
#error pages
|
16 |
@app.errorhandler(429)
|
17 |
-
def ratelimit_handler(e): return render_template('ratelimit.html')
|
18 |
@app.errorhandler(403)
|
19 |
-
def forbidden_handler(e): return render_template('forbidden.html')
|
20 |
@app.errorhandler(404)
|
21 |
-
def notfound_handler(e): return render_template('notfound.html')
|
22 |
@app.errorhandler(405)
|
23 |
-
def methodnotallowed_handler(e): return render_template('methodnotallowed.html')
|
24 |
@app.errorhandler(500)
|
25 |
-
def internalservererror_handler(e): return render_template('intervalservererror.html')
|
26 |
@app.errorhandler(502)
|
27 |
-
def badgateway_handler(e): return render_template('badgateway.html')
|
28 |
|
29 |
#empty routes
|
30 |
@app.route('/yt/api/v1', methods=['POST'])
|
|
|
14 |
|
15 |
#error pages
|
16 |
@app.errorhandler(429)
|
17 |
+
def ratelimit_handler(e): return render_template('ratelimit.html'), 429
|
18 |
@app.errorhandler(403)
|
19 |
+
def forbidden_handler(e): return render_template('forbidden.html'), 403
|
20 |
@app.errorhandler(404)
|
21 |
+
def notfound_handler(e): return render_template('notfound.html'), 404
|
22 |
@app.errorhandler(405)
|
23 |
+
def methodnotallowed_handler(e): return render_template('methodnotallowed.html'), 405
|
24 |
@app.errorhandler(500)
|
25 |
+
def internalservererror_handler(e): return render_template('intervalservererror.html'), 500
|
26 |
@app.errorhandler(502)
|
27 |
+
def badgateway_handler(e): return render_template('badgateway.html'), 502
|
28 |
|
29 |
#empty routes
|
30 |
@app.route('/yt/api/v1', methods=['POST'])
|