From e77a3946d746fdb9f8651a9bbf361d6d82de3419 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 00000000..7d747157 --- /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