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