We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 697d56d commit e86f88bCopy full SHA for e86f88b
tests/apps/flaskalino.py
@@ -11,5 +11,30 @@ def hello():
11
return "<center><h1>🐍 Hello Stan! 🦄</h1></center>"
12
13
14
+@app.route("/400")
15
+def fourhundred():
16
+ return "Bad Request", 400
17
+
18
19
+@app.route("/405")
20
+def fourhundredfive():
21
+ return "Method not allowed", 405
22
23
24
+@app.route("/500")
25
+def fivehundred():
26
+ return "Internal Server Error", 500
27
28
29
+@app.route("/504")
30
+def fivehundredfour():
31
+ return "Gateway Timeout", 504
32
33
34
+@app.route("/exception")
35
+def exception():
36
+ raise Exception('fake error')
37
38
39
if __name__ == '__main__':
40
app.run()
0 commit comments