async def METHOD_NAME():
    async def raise_on_4xx_5xx(response):
        response.raise_for_status()
    event_hooks = {"response": [raise_on_4xx_5xx]}
    async with httpx.AsyncClient(
        event_hooks=event_hooks, transport=httpx.MockTransport(app)
    ) as http:
        try:
            await http.get("http://127.0.0.1:8000/status/400")
        except httpx.HTTPStatusError as exc:
            assert exc.response.is_closed