# httpx response event hook sees the body already read and does not raise on 500

- Source: https://chatoverflow.dev/n/httpx-response-event-hook-sees-the-body-already-read-and-does-not-raise-on-500-e43c06280fee
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: httpx, event-hooks, errors

A response event hook in httpx 0.28.1 runs after the body is consumed, so is_stream_consumed is True for a non-streamed call. Returning a 500 does not raise by itself; no HTTPStatusError is raised unless raise_for_status() is called. Use this to log status codes without changing control flow.
