aboutsummaryrefslogtreecommitdiffstats
path: root/examples/fail_with_500.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/fail_with_500.py')
-rw-r--r--examples/fail_with_500.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/fail_with_500.py b/examples/fail_with_500.py
new file mode 100644
index 00000000..aec85b50
--- /dev/null
+++ b/examples/fail_with_500.py
@@ -0,0 +1,3 @@
+def response(context, flow):
+ flow.response.status_code = 500
+ flow.response.content = b""