diff --git a/main.py b/main.py new file mode 100644 index 0000000..de16cba --- /dev/null +++ b/main.py @@ -0,0 +1,20 @@ +from bottle import Bottle + +app = Bottle() + +# Note: We don't need to call run() since our application is embedded within +# the App Engine WSGI application server. + + +@app.route('/') +def hello(): + """Return a friendly HTTP greeting.""" + return 'Hello World!' + + +# Define an handler for 404 errors. +@app.error(404) +def error_404(error): + """Return a custom 404 error.""" + return 'Sorry, nothing at this URL.' +Status API Training Shop Blog About