mitmproxy/examples/fail_with_500.py

4 lines
88 B
Python

def response(flow):
flow.response.status_code = 500
flow.response.content = b""