mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
500 handler
This commit is contained in:
@@ -34,6 +34,10 @@ app = Flask(__name__)
|
||||
# Routes
|
||||
# ------
|
||||
|
||||
@app.errorhandler(500)
|
||||
@filters.json
|
||||
def page_not_found(e):
|
||||
return {'error': True, 'why': str(e)}
|
||||
|
||||
@app.route('/')
|
||||
def view_landing_page():
|
||||
|
||||
Reference in New Issue
Block a user