From 05ec2dc9be1bb119bdee4a5e7ea8147d95d06af2 Mon Sep 17 00:00:00 2001 From: Cody Hill Date: Tue, 14 Nov 2017 05:51:37 -0800 Subject: [PATCH] Added python example to demonstrate status codes. (#395) --- examples/python/statuscode.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 examples/python/statuscode.py diff --git a/examples/python/statuscode.py b/examples/python/statuscode.py new file mode 100644 index 000000000..7d7471577 --- /dev/null +++ b/examples/python/statuscode.py @@ -0,0 +1,4 @@ +def main(): + # You can return any http status code you like, simply place a comma after + # your return statement, and typing in the status code. + return "Not Found\n", 404